mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
8 lines
207 B
TypeScript
8 lines
207 B
TypeScript
import { v1 } from 'uuid';
|
|
|
|
v1(undefined, new Uint8Array(16)) satisfies Uint8Array;
|
|
v1(undefined, Buffer.alloc(16)) satisfies Buffer;
|
|
|
|
// @ts-expect-error
|
|
v1(undefined, new Uint8Array(16)) satisfies Buffer;
|