Module

x/ts_morph/ts_morph.d.ts>ExportAssignment

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
class ExportAssignment
extends ExportAssignmentBase<ts.ExportAssignment>
import { ExportAssignment } from "https://dotland.deno.dev/x/ts_morph@21.0.0/ts_morph.d.ts";

Methods

getParent(): NodeParentType<ts.ExportAssignment>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ExportAssignment>>

Gets the structure equivalent to this node.

isExportEquals(): boolean

Gets if this is an export equals assignment.

If this is false, then it's export default.

set(structure: Partial<ExportAssignmentStructure>): this

Sets the node from a structure.

setIsExportEquals(value: boolean): this

Sets if this is an export equals assignment or export default.