Skip to content
Myr

Move module docs to .d.ts

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent a0a1c85 · Browse files · 4 files+25 added−25 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+25 added−25 removed

  • other:+25 added−25 removed

4 files+25 added−25 removed

modified:non-secure/index.d.ts+13 added
modified:non-secure/index.js-13 removed
modified:index.d.ts+12 added
modified:index.js-12 removed
1/**2 * A tiny, secure, URL-friendly, unique string ID generator for JavaScript3 * with hardware random generator.4 *5 * ```js6 * import { nanoid } from 'nanoid'7 * model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"8 * ```9 *10 * @module11 */121import { webcrypto as crypto } from 'node:crypto'23import { urlAlphabet as scopedUrlAlphabet } from './url-alphabet/index.js'4
82 unmodified lines