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

x/ts_morph/ts_morph.d.ts>ReadonlyableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ReadonlyableNode
import { type ReadonlyableNode } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

Methods

isReadonly(): boolean

Gets if it's readonly.

getReadonlyKeyword(): Node | undefined

Gets the readonly keyword, or undefined if none exists.

getReadonlyKeywordOrThrow(): 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/ts_morph@16.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ReadonlyableNodeExtensionType>