Skip to main content

Type AST TypeScript Object

The Type object matches a TypeScript type (e.g. the identifier of a type).

The astType value for this node is type.

Code Pattern

This object catches the following code patterns:

const foo: number = 42;
const bar: string = "hello world";

The TypeScriptType captures the element number or string in the code above.

Attributes