FolderNametypeno test imports ittype FolderName = Brand<string, "kanon folder">;A folder of a library from its root, with a trailing / (./ for the files at the root): made only by parseFolder.
The two names a table is made of (commons 0033-kanon FR-010): a folder of a library and a package's name, branded types made only by their smart constructors (parse, don't validate).
FolderNametypeno test imports ittype FolderName = Brand<string, "kanon folder">;A folder of a library from its root, with a trailing / (./ for the files at the root): made only by parseFolder.
PackageNametypeno test imports ittype PackageName = Brand<string, "kanon package name">;A package's name, as @scope/name or name: made only by parsePackageName.
parseFolderfunctionfunction parseFolder(text: string): Result<FolderName, string>A folder from text, or why the text is not one: the one way a FolderName is made.
parsePackageNamefunctionfunction parsePackageName(text: string): Result<PackageName, string>A package name from text, or why the text is not one: the one way a PackageName is made.