@k8ts/instruments
Version:
A collection of utilities and core components for k8ts.
13 lines (10 loc) • 399 B
text/typescript
import type { Kind } from "../api-kind"
export type Kinded<K extends Kind.IdentParent = Kind.IdentParent> = { kind: K }
export type Refable<
Kind extends Kind.IdentParent = Kind.IdentParent,
Name extends string = string
> = Kinded<Kind> & {
name: Name
}
export type LiveRefable<Object extends Kinded = Kinded, Name extends string = string> = Object &
Refable<Object["kind"], Name>