mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
686 B
TypeScript
32 lines
686 B
TypeScript
// @noEmit: true
|
|
|
|
// https://github.com/microsoft/typescript-go/issues/3489
|
|
|
|
type Lower = Lowercase<"İSPANYOL" | "ΟΣ">;
|
|
|
|
const lowerMap: Record<Lower, string> = {
|
|
["i̇spanyol"]: "spanish",
|
|
["ος"]: "greek-final-sigma",
|
|
};
|
|
|
|
type Upper = Uppercase<"ßfoo" | "fioo">;
|
|
|
|
const upperMap: Record<Upper, string> = {
|
|
["SSFOO"]: "eszett",
|
|
["FIOO"]: "ligature",
|
|
};
|
|
|
|
type Capitalized = Capitalize<"ßfoo" | "fioo">;
|
|
|
|
const capitalizedMap: Record<Capitalized, string> = {
|
|
["SSfoo"]: "eszett",
|
|
["FIoo"]: "ligature",
|
|
};
|
|
|
|
type Uncapitalized = Uncapitalize<"İfoo" | "ΟΣ">;
|
|
|
|
const uncapitalizedMap: Record<Uncapitalized, string> = {
|
|
["i̇foo"]: "dotted-i",
|
|
["οΣ"]: "sigma-prefix",
|
|
};
|