ClientIdCreator id.ts
Declarations #
5 declarations
ClientIdCreator #
ClientIdCreator
create_client_id_creator #
create_client_id_creator
(name: string, count?: number | undefined, separator?: string): ClientIdCreator Creates a string id generator function, outputting ${name}_${count} by default.
name
type
stringcount?
type
number | undefinedoptional
separator
type
string default
'_'returns
ClientIdCreator is_uuid #
is_uuid
(str: string): str is Uuid Loosely validates a UUID string.
str
type
stringreturns
boolean Uuid #
Uuid
Uuid UUID_MATCHER #
UUID_MATCHER
RegExp Postgres doesn't support the namespace prefix, so neither does Felt. For more see the UUID RFC - https://tools.ietf.org/html/rfc4122 The Ajv validator does support the namespace, hence this custom implementation.