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

x/deno2node/src/deps.deno.ts>ReadonlyableNode

Compile your Deno project to run on Node.js.
Go to Latest
interface ReadonlyableNode
import { type ReadonlyableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Methods

isReadonly(): boolean

Gets if it's readonly.

getReadonlyKeyword(): Node | undefined

Gets the readonly keyword, or undefined if none exists.

getReadonlyKeywordOrThrow(message?: string | (() => string)): Node

Gets the readonly keyword, or throws if none exists.

setIsReadonly(value: boolean): this

Sets if this node is readonly.

function ReadonlyableNode
import { ReadonlyableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<ReadonlyableNodeExtensionType>