@k8ts/metadata
Version:
K8ts tools for working with k8ts metadata.
23 lines • 939 B
TypeScript
export declare namespace Char {
namespace Prefix {
type Label = "%";
type Annotation = "^";
type Comment = "#";
type Custom = `${Label | Annotation | Comment}`;
}
type Section = "/";
const Section = "/";
type Lower = `${"a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"}`;
type Upper = Uppercase<Lower>;
type Digit = `${"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"}`;
type Extra = "-" | "_" | ".";
type Normal = `${Lower | Digit}`;
}
export declare namespace Key {
type Section = `${Char.Normal}${string}${Char.Section}`;
type Special = "name" | "namespace";
type Value = (`${Char.Prefix.Custom}${string}` & `${string}${Char.Normal}`) | Special;
type Key = Section | Value;
}
export type Key = Key.Key;
//# sourceMappingURL=types.d.ts.map