import { Decorator } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Methods
addArguments(argumentTexts: ReadonlyArray<string | WriterFunction> | WriterFunction): Node<ts.Node>[]
Adds arguments.
getCallExpressionOrThrow(message?: string | (() => string)): CallExpression
Gets the call expression if a decorator factory, or throws.
getParent(): NodeParentType<ts.Decorator>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.Decorator>>
insertArgument(index: number, argumentText: string | WriterFunction): Node<ts.Node>
Inserts an argument.
insertArguments(index: number, argumentTexts: ReadonlyArray<string | WriterFunction> | WriterFunction): Node<ts.Node>[]
Inserts arguments.
insertTypeArgument(index: number, argumentText: string): TypeNode<ts.TypeNode>
Inserts a type argument.
insertTypeArguments(index: number, argumentTexts: ReadonlyArray<string>): TypeNode<ts.TypeNode>[]
Inserts type arguments.
setIsDecoratorFactory(isDecoratorFactory: boolean): this
Set if this decorator is a decorator factory.