Skip to content
Myr

Mark size as an optional argument

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 5911e03 · Browse files · 9 files+9 added−8 removed
This commit

State

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

Diff stats

9 files+9 added−8 removed

  • other:+9 added−8 removed

9 files+9 added−8 removed

modified:async/format/index.d.ts+1 added-1 removed
modified:async/generate/index.d.ts+1 added-1 removed
modified:async/index.d.ts+1 added-1 removed
modified:format/index.d.ts+1 added-1 removed
modified:generate/index.d.ts+1 added-1 removed
modified:non-secure/generate/index.d.ts+1 added-1 removed
modified:non-secure/index.d.ts+1 added-1 removed
modified:.npmignore+1 added
8 unmodified lines
9.gitpod.yml1011img/12.cache13**/types.ts
modified:index.d.ts+1 added-1 removed
10 unmodified lines
11 *12 * @param size The number of symbols in ID. Default is 21.13 * @returns Random string.14 */15export default function nanoid (size: number): string15export default function nanoid (size?: number): string