make union of AST types public and exportable with `AST` namespace

pull/14601/head
Mateusz Kadlubowski 2 years ago
parent 0b598e4044
commit 467b741bc4
No known key found for this signature in database
GPG Key ID: AAED58FCEFE941BB

@ -498,51 +498,56 @@ export namespace AST {
content: Program; content: Program;
attributes: Attribute[]; attributes: Attribute[];
} }
}
type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag; export type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag;
export type Directive = export type Directive =
| AST.AnimateDirective | AST.AnimateDirective
| AST.BindDirective | AST.BindDirective
| AST.ClassDirective | AST.ClassDirective
| AST.LetDirective | AST.LetDirective
| AST.OnDirective | AST.OnDirective
| AST.StyleDirective | AST.StyleDirective
| AST.TransitionDirective | AST.TransitionDirective
| AST.UseDirective; | AST.UseDirective;
export type Block = AST.EachBlock | AST.IfBlock | AST.AwaitBlock | AST.KeyBlock | AST.SnippetBlock; export type Block =
| AST.EachBlock
export type ElementLike = | AST.IfBlock
| AST.Component | AST.AwaitBlock
| AST.TitleElement | AST.KeyBlock
| AST.SlotElement | AST.SnippetBlock;
| AST.RegularElement
| AST.SvelteBody export type ElementLike =
| AST.SvelteBoundary | AST.Component
| AST.SvelteComponent | AST.TitleElement
| AST.SvelteDocument | AST.SlotElement
| AST.SvelteElement | AST.RegularElement
| AST.SvelteFragment | AST.SvelteBody
| AST.SvelteHead | AST.SvelteBoundary
| AST.SvelteOptionsRaw | AST.SvelteComponent
| AST.SvelteSelf | AST.SvelteDocument
| AST.SvelteWindow | AST.SvelteElement
| AST.SvelteBoundary; | AST.SvelteFragment
| AST.SvelteHead
export type TemplateNode = | AST.SvelteOptionsRaw
| AST.Root | AST.SvelteSelf
| AST.Text | AST.SvelteWindow
| Tag | AST.SvelteBoundary;
| ElementLike
| AST.Attribute export type TemplateNode =
| AST.SpreadAttribute | AST.Root
| Directive | AST.Text
| AST.Comment | Tag
| Block; | ElementLike
| AST.Attribute
export type SvelteNode = Node | TemplateNode | AST.Fragment | Css.Node; | AST.SpreadAttribute
| Directive
| AST.Comment
| Block;
export type SvelteNode = Node | TemplateNode | AST.Fragment | Css.Node;
}
declare module 'estree' { declare module 'estree' {
export interface BaseNode { export interface BaseNode {

Loading…
Cancel
Save