Skip to main content
Module

x/ts_morph/ts_morph.d.ts>Type#getObjectFlags

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Type.prototype.getObjectFlags
import { Type } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";

Gets the object flags.

Returns

| 0
| ObjectFlags.Class
| ObjectFlags.Interface
| ObjectFlags.Reference
| ObjectFlags.Tuple
| ObjectFlags.Anonymous
| ObjectFlags.Mapped
| ObjectFlags.Instantiated
| ObjectFlags.ObjectLiteral
| ObjectFlags.EvolvingArray
| ObjectFlags.ObjectLiteralPatternWithComputedProperties
| ObjectFlags.ReverseMapped
| ObjectFlags.JsxAttributes
| ObjectFlags.JSLiteral
| ObjectFlags.FreshLiteral
| ObjectFlags.ArrayLiteral
| ObjectFlags.ClassOrInterface
| ObjectFlags.ContainsSpread
| ObjectFlags.ObjectRestType
| ObjectFlags.InstantiationExpressionType