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
Go to Latest
function assertOrAddApiVersionAndKind
import { assertOrAddApiVersionAndKind } from "https://deno.land/x/kubernetes_apis@v0.5.1/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; }