Skip to main content
Module

x/ts_morph/mod.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@15.1.0/mod.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@15.1.0/mod.ts";

Type Parameters

T extends Constructor<ReadonlyableNodeExtensionType>