forked from uber-archive/npm-shrinkwrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.mli
45 lines (39 loc) · 1.21 KB
/
docs.mli
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
type ShrinkwrapOptions := {
dirname: String,
createUri: (name: String, version: String) => uri: String,
registries: Array<registryUri: String>,
rewriteResolved: (resolved: String) => resolved: String,
warnOnNotSemver: Boolean,
validators?: Array<
(dep: Object, key: String) => Error | null
>
}
npm-shrinkwrap := (
opts: ShrinkwrapOptions,
cb: Callback<Error, warnings: Array<TypedError>>
) => void
npm-shrinkwrap/analyze-dependency := (
name: String,
gitLink: String,
opts: ShrinkwrapOptions,
cb: Callback<Error, TypedError>
) => void
npm-shrinkwrap/set-resolved :=
(ShrinkwrapOptions, Callback<Error, void>) => void
npm-shrinkwrap/trim-and-sort-shrinkwrap :=
(ShrinkwrapOptions, Callback<Error, void>) => void
npm-shrinkwrap/verify-git :=
(ShrinkwrapOptions, Callback<Error, void>) => void
npm-shrinkwrap/bin/cli := (opts: ShrinkwrapOptions & {
help: Boolean,
install: Boolean,
onwarn: Function<warnings: Array<TypedError>>,
onerror: Function<Error | TypedError>,
cmd: String,
silent: Boolean,
_: Array<additionalArg: String>,
packageVersion: String,
moduleName: String,
depth: Number,
short: Boolean
}) => void