types/src/identifiers.d.ts
2023-08-26 13:49:57 -07:00

13 lines
467 B
TypeScript

/** An HTTP URL, e.g. `https://example.com/foo?bar=baz` */
export type HttpURL = `http://${string}` | `https://${string}`;
/** An HTTP URL without the scheme specified, e.g. `//example.com/foo?bar=baz` */
export type HttpURLSchemeless = `//${string}`;
/** An RFC 4122 Universally Unique Identifier string */
export type UUID = `${string}-${string}-${string}-${string}-${string}`;
/** A Snowflake unique identifier string */
export type SnowflakeID = `${bigint}`;