UNPKG

twing

Version:

First-class Twig engine for Node.js

23 lines (22 loc) 2.32 kB
import { TwingBaseNode, TwingBaseNodeAttributes, TwingBaseNodeChildren } from "../node"; import type { TwingConstantNode } from "./expression/constant"; import type { TwingNameNode } from "./expression/name"; import type { TwingAssignmentNode } from "./expression/assignment"; import type { TwingArrayNode } from "./expression/array"; import type { TwingHashNode } from "./expression/hash"; import type { TwingArrowFunctionNode } from "./expression/arrow-function"; import type { TwingBinaryNode } from "./expression/binary"; import type { TwingUnaryNode } from "./expression/unary"; import type { TwingFilterNode } from "./expression/call/filter"; import type { TwingConditionalNode } from "./expression/conditional"; import type { TwingCallNode } from "./expression/call"; import type { TwingBlockFunctionNode } from "./expression/block-function"; import type { TwingAttributeAccessorNode } from "./expression/attribute-accessor"; import type { TwingMethodCallNode } from "./expression/method-call"; import type { TwingNullishCoalescingNode } from "./expression/nullish-coalescing"; import type { TwingParentFunctionNode } from "./expression/parent-function"; import type { TwingSpreadNode } from "./expression/spread"; export type TwingExpressionNode = TwingArrayNode | TwingArrowFunctionNode | TwingAssignmentNode | TwingBinaryNode | TwingBlockFunctionNode | TwingCallNode | TwingConditionalNode | TwingConstantNode | TwingFilterNode | TwingAttributeAccessorNode | TwingHashNode | TwingMethodCallNode | TwingNameNode | TwingNullishCoalescingNode | TwingParentFunctionNode | TwingSpreadNode | TwingUnaryNode; export type TwingBaseExpressionNodeAttributes = TwingBaseNodeAttributes; export type TwingBaseExpressionNode<Type extends string = any, AdditionalAttributes extends TwingBaseExpressionNodeAttributes = TwingBaseExpressionNodeAttributes, Children extends TwingBaseNodeChildren = TwingBaseNodeChildren> = TwingBaseNode<Type, TwingBaseExpressionNodeAttributes & AdditionalAttributes, Children>; export declare const createBaseExpressionNode: <Type extends string | null, Attributes extends TwingBaseNodeAttributes, Children extends TwingBaseNodeChildren>(type: Type, attributes?: Attributes, children?: Children, line?: number, column?: number, tag?: string | null) => TwingBaseNode<Type, Attributes, Children>;