From 95694e53d0d64f9a3aa42711e8153772dfff49bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 17 May 2020 23:10:54 +0200 Subject: [PATCH] Add flow typed file. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- flow-typed/npm/uuid_v8.x.x.js | 74 +++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 flow-typed/npm/uuid_v8.x.x.js 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, + |}; +} -- 2.34.1