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

x/live/deps.ts>RequiredKeys

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
type alias RequiredKeys
import { type RequiredKeys } from "https://deno.land/x/live@1.53.6/deps.ts";

RequiredKeys

Examples

type Props = { req: number; reqUndef: number | undefined; opt?: string; optUndef?: number | undefined; };

// Expect: "req" | "reqUndef" type Keys = RequiredKeys;

definition: [K in keyof T]-?: { } extends Pick<T, K> ? never : K[keyof T]