ExtensionIdtypetype ExtensionId = Brand<string, "ExtensionId">;The identifier of an extension.
The identifier of an extension (commons data 0002-engine FR-003): lower-case words joined by - or ., such as privacy or sql.documentation. It is a branded string made only by extensionId, so that a name that was not checked cannot be used where an identifier is wanted.
ExtensionIdtypetype ExtensionId = Brand<string, "ExtensionId">;The identifier of an extension.
extensionIdfunctionfunction extensionId(text: string): Result<ExtensionId, IdError>Checks a text as an identifier.
| Parameter | What it is |
|---|---|
text | the text |
Returns: the identifier, or the text that is not one
IdErrortypeno test imports ittype IdError = { readonly kind: "id"; readonly text: string };Why a text is not an identifier.