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

MutableKeys

MutableKeys

@example
type Props = { readonly foo: string; bar: number };

  // Expect: "bar"
  type Keys = MutableKeys<Props>;
type MutableKeys<T extends object> = [P in keyof T]-?: IfEquals<[Q in P]: T[P], -readonly [Q in P]: T[P], P>[keyof T];

§Type Parameters

§
T extends object
[src]

§Type

§
[P in keyof T]-?: IfEquals<[Q in P]: T[P], -readonly [Q in P]: T[P], P>[keyof T]
[src]