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

$ReadOnly

$ReadOnly

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

  // Expect: Readonly<{ name: string; age?: number | undefined; visible: boolean; }>
  type ReadOnlyProps = $ReadOnly<Props>;
type $ReadOnly<T extends object> = DeepReadonly<T>;

§Type Parameters

§
T extends object
[src]

§Type