mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
9 lines
262 B
TypeScript
9 lines
262 B
TypeScript
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
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;
|