Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>O.P.Readonly

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias O.P.Readonly
import { type O } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Readonly } = O.P;

Make some fields of O readonly at Path (deeply or not)

Examples

Example 1

Type Parameters

O extends object
Path extends List<Key>
optional
depth extends Depth = "flat"
definition: Path extends unknown ? ReadonlyAt<O, Path, depth> : never