Skip to main content
Module

x/youtubei/deno.ts>Generator.toTypeDeclaration

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
function Generator.toTypeDeclaration
import { Generator } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { toTypeDeclaration } = Generator;

For a given inference type, get the typescript type declaration

Parameters

inference_type: InferenceType
  • The inference type to get the declaration for
optional
indentation = [UNSUPPORTED]
  • The indentation level (used for objects)

Returns

string

Typescript type declaration