Skip to content

newId

function newId(prefix, ms?): string;

Defined in: src/id.ts:20

A new id, e.g. newId("evt") → "evt_01JD…". ms overrides the clock for this id.

Parameter Type
prefix IdPrefix
ms? number

string