Skip to main content
Module

x/utilitypes/weaken.ts>Weaken

A collection of utility types for TypeScript
Latest
type alias Weaken
import { type Weaken } from "https://deno.land/x/utilitypes@v1.0.0-beta.4/weaken.ts";

Returns the specified property of an types as any.

Examples

Example 1

Weaken<{ 0: number, a: string, b: string }, 0 | 'a'>
// { 0: any, a: any, b: string }

Type Parameters

T
U extends keyof T
definition: [k in keyof T]: k extends U ? any : T[k]