marko
Version:
Optimized runtime for Marko templates.
90 lines (89 loc) • 3.25 kB
TypeScript
import { types as t } from "@marko/compiler";
import { type Tag } from "@marko/compiler/babel-utils";
export declare const IfTag: Tag;
export declare const ElseIfTag: {
attributeGroups?: string[];
patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
attributes?: {
[x: string]: import("@marko/compiler/babel-utils").Attribute;
};
description?: string;
nestedTags?: {
[x: string]: Tag & {
isRepeated?: boolean;
targetProperty?: string;
};
};
htmlType?: "html" | "svg" | "math";
html?: boolean;
types?: string;
template?: string;
renderer?: string;
deprecated?: boolean;
openTagOnly?: boolean;
analyze?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
translate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
parse?: import("@marko/compiler/babel-utils").ParsePlugin<t.MarkoTag>;
transform?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
migrate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
parseOptions?: {
rootOnly?: boolean;
rawOpenTag?: boolean;
openTagOnly?: boolean;
controlFlow?: boolean;
ignoreAttributes?: boolean;
relaxRequireCommas?: boolean;
statement?: boolean;
preserveWhitespace?: boolean;
text?: boolean;
html?: boolean;
};
autocomplete: {
snippet: string;
description: string;
descriptionMoreURL: string;
}[];
};
export declare const ElseTag: {
attributeGroups?: string[];
patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
attributes?: {
[x: string]: import("@marko/compiler/babel-utils").Attribute;
};
description?: string;
nestedTags?: {
[x: string]: Tag & {
isRepeated?: boolean;
targetProperty?: string;
};
};
htmlType?: "html" | "svg" | "math";
html?: boolean;
types?: string;
template?: string;
renderer?: string;
deprecated?: boolean;
openTagOnly?: boolean;
analyze?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
translate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
parse?: import("@marko/compiler/babel-utils").ParsePlugin<t.MarkoTag>;
transform?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
migrate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
parseOptions?: {
rootOnly?: boolean;
rawOpenTag?: boolean;
openTagOnly?: boolean;
controlFlow?: boolean;
ignoreAttributes?: boolean;
relaxRequireCommas?: boolean;
statement?: boolean;
preserveWhitespace?: boolean;
text?: boolean;
html?: boolean;
};
autocomplete: {
description: string;
descriptionMoreURL: string;
}[];
};
export declare function flattenTextOnlyConditional(rootTag: t.NodePath<t.MarkoTag>): void;