Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kubernetes_apis/common.ts>assertOrAddApiVersionAndKind

REST focused Typescript classes for Kubernetes APIs, and tools for generating API interfaces
Latest
function assertOrAddApiVersionAndKind
import { assertOrAddApiVersionAndKind } from "https://deno.land/x/kubernetes_apis@v0.5.3/common.ts";

Type Parameters

T extends string
U extends string

Parameters

input: JSONObject | { apiVersion?: JSONValue; kind?: JSONValue; }
expectedVersion: T
expectedKind: U
optional
required = [UNSUPPORTED]

Returns

{ apiVersion: T; kind: U; }