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

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.ToNativeParameterTypes

A modern runtime for JavaScript and TypeScript.
Latest
type alias Deno.ToNativeParameterTypes
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { ToNativeParameterTypes } = Deno;

A utility type for conversion of parameter types of foreign functions.

Type Parameters

T extends readonly NativeType[]
definition: [T[number][]] extends [T] ? ToNativeType<T[number]>[] : [readonly T[number][]] extends [T] ? readonly ToNativeType<T[number]>[] : T extends readonly [...NativeType[]] ? [K in keyof T]: ToNativeType<T[K]> : never