|
3 | 3 | declare module "@verdaccio/types" { |
4 | 4 |
|
5 | 5 | declare export type Stdout = stream$Writable | tty$WriteStream; |
6 | | - declare export type Stdin = stream$Rxxeadable | tty$ReadStream; |
7 | | - |
| 6 | + declare export type Stdin = stream$Readable | tty$ReadStream; |
| 7 | + declare export type SyncReturn = Error | void; |
8 | 8 |
|
9 | 9 | declare export interface IStorage { |
10 | 10 | addPackage(name: string, info: Package, callback: Callback): void; |
@@ -33,10 +33,10 @@ declare module "@verdaccio/types" { |
33 | 33 | } |
34 | 34 |
|
35 | 35 | declare export interface ILocalData { |
36 | | - add(name: string): void; |
37 | | - remove(name: string): void; |
| 36 | + add(name: string): SyncReturn; |
| 37 | + remove(name: string): SyncReturn; |
38 | 38 | get(): StorageList; |
39 | | - sync(): void; |
| 39 | + sync(): ?SyncReturn; |
40 | 40 | } |
41 | 41 |
|
42 | 42 | declare export interface ILocalStorage { |
@@ -113,26 +113,26 @@ declare module "@verdaccio/types" { |
113 | 113 | homemage: string; |
114 | 114 | license: string; |
115 | 115 | readme: string; |
116 | | - readmeFileName: string; |
117 | | - description: string; |
118 | | - bin: string; |
| 116 | + readmeFileName: string; |
| 117 | + description: string; |
| 118 | + bin: string; |
119 | 119 | bugs: any; |
120 | | - repository: string; |
121 | | - homepage: string; |
| 120 | + repository: string; |
| 121 | + homepage: string; |
122 | 122 | dist: Dist; |
123 | | - contributors: Array<string>; |
| 123 | + contributors: Array<string>; |
124 | 124 | keywords: string | Array<string>; |
125 | 125 | _npmUser: Author; |
126 | 126 | _hasShrinkwrap: boolean; |
127 | 127 | }; |
128 | 128 |
|
129 | 129 | declare export type Logger = { |
130 | 130 | child: (conf: any) => any; |
131 | | - debug: (conf: any, template?: string) => void; |
132 | | - error: (conf: any, template?: string) => void; |
133 | | - http: (conf: any, template?: string) => void; |
134 | | - trace: (conf: any, template?: string) => void; |
135 | | - info: (conf: any, template?: string) => void; |
| 131 | + debug: (conf: any, template?: mixed) => void; |
| 132 | + error: (conf: any, template?: mixed) => void; |
| 133 | + http: (conf: any, template?: mixed) => void; |
| 134 | + trace: (conf: any, template?: mixed) => void; |
| 135 | + info: (conf: any, template?: mixed) => void; |
136 | 136 | } |
137 | 137 |
|
138 | 138 | declare export type Versions = { |
|
0 commit comments