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

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

Compile your Deno project to run on Node.js.
Go to Latest
class MappedTypeNode
extends TypeNode<ts.MappedTypeNode>
import { MappedTypeNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Methods

getNameTypeNode(): TypeNode | undefined

Gets the mapped type node's name type node if any.

getNameTypeNodeOrThrow(message?: string | (() => string)): TypeNode

Gets the mapped type node's name type node or throws if it doesn't exist.

getParent(): NodeParentType<ts.MappedTypeNode>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.MappedTypeNode>>
getQuestionToken():
| Node<ts.QuestionToken>
| Node<ts.PlusToken>
| Node<ts.MinusToken>
| undefined

Gets the mapped type's question token.

getQuestionTokenOrThrow(message?: string | (() => string)): Node<ts.QuestionToken> | Node<ts.PlusToken> | Node<ts.MinusToken>

Gets the mapped type's question token or throws if not exist.

getReadonlyToken():
| Node<ts.ReadonlyKeyword>
| Node<ts.PlusToken>
| Node<ts.MinusToken>
| undefined

Gets the mapped type's readonly token.

getReadonlyTokenOrThrow(message?: string | (() => string)): Node<ts.ReadonlyKeyword> | Node<ts.PlusToken> | Node<ts.MinusToken>

Gets the mapped type's readonly token or throws if not exist.

getTypeNode(): TypeNode | undefined

Gets the mapped type node's type node if it exists or returns undefined when not.

getTypeNodeOrThrow(message?: string | (() => string)): TypeNode

Gets the mapped type node's type node if it exists or throws when undefined.

Gets the mapped type node's type parameter.