Skip to main content
Module

x/unknownutil/is.ts>isReadonly

🦕 A lightweight utility pack for handling unknown type
Go to Latest
function isReadonly
import { isReadonly } from "https://deno.land/x/unknownutil@v3.18.0/is.ts";

Return true if the type of predicate function x is annotated as Readonly

This is unstable and may be removed in the future.

Type Parameters

P extends Predicate<unknown>

Returns

x is P & WithMetadata<IsReadonlyOfMetadata>