UNPKG
uid-promise
Version:
latest (2.0.5)
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.1
1.1.0
1.0.0
0.1.0
generates a cryptographically strong random uid
github.com/vercel/uid-promise
vercel/uid-promise
uid-promise
/
lib
/
types
/
uid.d.ts
3 lines
(2 loc)
•
153 B
TypeScript
View Raw
1
2
3
import
type
{
RandomBytes
}
from
'./types.js'
;
export
declare
const
generateUidFunction
:
(
randomBytes
:
RandomBytes
) =>
(
len
:
number
) =>
Promise
<
string
>;