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

x/typebox/src/typebox.ts>TypeGuard.TReadonly

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
function TypeGuard.TReadonly
import { TypeGuard } from "https://deno.land/x/typebox@0.26.0-dev.1/src/typebox.ts";
const { TReadonly } = TypeGuard;

Returns true if this schema has the Readonly modifier

Parameters

schema: T

Returns

schema is TReadonly<T>