Skip to content

API > @blocksuite/store > nanoid

Function: nanoid ​

nanoid(type): string

Parameters ​

ParameterType
type"workspace" | "page" | "block" | "unknown"

Returns ​

string

Defined In ​

packages/store/src/utils/id-generator.ts:4