Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

$Keys

$Keys

@example
type Props = { name: string; age: number; visible: boolean };

  // Expect: "name" | "age" | "visible"
  type PropsKeys = $Keys<Props>;
type $Keys<T extends object> = keyof T;

§Type Parameters

§
T extends object
[src]

§Type

§
keyof T
[src]