-
Notifications
You must be signed in to change notification settings - Fork 0
/
declarations.d.ts
47 lines (43 loc) · 1.31 KB
/
declarations.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
declare module 'object-deep-contain' {
export default function(bigObject: unknown, smallerObject: unknown): boolean
}
declare module '@hutson/set-npm-auth-token-for-ci' {
export default function(): void
}
declare module 'npm-login-noninteractive' {
// docs: https://github.com/icdevin/npm-login-noninteractive
export default function(
npmUsername: string,
npmPassword: string,
npmEmail: string,
npmRegistryAddress?: string, // example: https://npm.example.com or http://localhost:4873
scope?: string,
configPath?: string,
): void
}
declare module 'object-delete-key' {
export default function(
originalInput: unknown,
originalOpts: {
key?: string
value?: string
cleanup?: boolean
only?: 'any' | 'object-type' | 'array-type'
},
): object
}
declare module 'node-git-server' {
type ConstatuctorOptions = {
authenticate: (
options: { type: string; repo: 1; user: (callback: (username: string, password: string) => void) => void },
next: () => void,
) => void
}
export default class NodeGitServer {
constructor(reposPath: string, options: ConstatuctorOptions)
close: () => Promise<void>
create: (repoName: string, cb: () => void) => void
listen: (port: number, cb: (err: unknown) => void) => void
server: Server
}
}