id.ts

Declarations
#

5 declarations

view source

ClientIdCreator
#

create_client_id_creator
#

id.ts view source

(name: string, count?: number | undefined, separator?: string): ClientIdCreator

Creates a string id generator function, outputting ${name}_${count} by default.

name

type string

count?

type number | undefined
optional

separator

type string
default '_'

returns

ClientIdCreator

is_uuid
#

id.ts view source

(str: string): str is Uuid

Loosely validates a UUID string.

str

type string

returns

boolean

Uuid
#

UUID_MATCHER
#

Depends on
#