From: Jérôme Benoit Date: Sun, 17 May 2020 21:10:54 +0000 (+0200) Subject: Add flow typed file. X-Git-Tag: v1.0.1-0~327 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=95694e53d0d64f9a3aa42711e8153772dfff49bd;p=e-mobility-charging-stations-simulator.git Add flow typed file. Signed-off-by: Jérôme Benoit --- diff --git a/flow-typed/npm/uuid_v8.x.x.js b/flow-typed/npm/uuid_v8.x.x.js new file mode 100644 index 00000000..496cf8be --- /dev/null +++ b/flow-typed/npm/uuid_v8.x.x.js @@ -0,0 +1,74 @@ +// flow-typed signature: 1b555a8f791762f2a4ee29e1335a175a +// flow-typed version: a40f6e5201/uuid_v8.x.x/flow_>=v0.104.x + +declare module 'uuid' { + // v1 (Timestamp) + declare type V1Options = {| + node?: $ReadOnlyArray, + clockseq?: number, + msecs?: number, + nsecs?: number, + random?: $ReadOnlyArray, + rng?: () => $ReadOnlyArray, + |}; + + declare export function v1(options?: V1Options): string; + + declare export function v1( + options: V1Options | null, + buffer: Array, + offset?: number + ): Array; + + // v3 (Namespace) + declare function v3Impl( + name: string | $ReadOnlyArray, + namespace: string | $ReadOnlyArray + ): string; + + declare function v3Impl( + name: string | $ReadOnlyArray, + namespace: string | $ReadOnlyArray, + buffer: Array, + offset?: number + ): Array; + + declare export var v3: {| + [[call]]: typeof v3Impl, + DNS: string, + URL: string, + |}; + + // v4 (Random) + declare type V4Options = {| + random?: $ReadOnlyArray, + rng?: () => $ReadOnlyArray, + |}; + + declare export function v4(options?: V4Options): string; + + declare export function v4( + options: V4Options | null, + buffer: Array, + offset?: number + ): Array; + + // v5 (Namespace) + declare function v5Impl( + name: string | $ReadOnlyArray, + namespace: string | $ReadOnlyArray + ): string; + + declare function v5Impl( + name: string | $ReadOnlyArray, + namespace: string | $ReadOnlyArray, + buffer: Array, + offset?: number + ): Array; + + declare export var v5: {| + [[call]]: typeof v5Impl, + DNS: string, + URL: string, + |}; +}