@k8ts/metadata
Version:
K8ts tools for working with k8ts metadata.
15 lines (12 loc) • 458 B
text/typescript
import { ValueKey } from "../key"
import type { Key } from "../key/types"
export namespace MetaInputParts {
type Of<T extends string, V> = {
[K in T]?: V
}
type Full = Nested & Of<Key.Section, Nested>
export type Nested = Of<Key.Value, string>
export type Heading = Of<Key.Section, Nested>
export type Input = Full & Heading
}
export type InputMeta = MetaInputParts.Input | undefined | Iterable<readonly [ValueKey, string]>