more types

This commit is contained in:
2023-08-26 13:49:57 -07:00
parent 2eea0e09c4
commit 065a29f0cc
6 changed files with 43 additions and 1 deletions

View File

@@ -1,6 +1,12 @@
/** 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}`;