@mittwald/kubernetes
Version:
Kubernetes client library
29 lines (28 loc) • 598 B
TypeScript
export declare type RecursivePartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U> ? Array<RecursivePartial<U>> : T[P] extends object ? RecursivePartial<T[P]> : T[P];
};
export declare type JSONPatchElement = {
op: "replace";
path: string;
value: any;
} | {
op: "add";
path: string;
value: any;
} | {
op: "remove";
path: string;
} | {
op: "copy";
path: string;
from: string;
} | {
op: "move";
path: string;
from: string;
} | {
op: "test";
path: string;
value: any;
};
export declare type JSONPatch = JSONPatchElement[];