diff options
author | 2021-03-25 00:00:22 -0700 | |
---|---|---|
committer | 2021-03-25 00:00:22 -0700 | |
commit | 30cccdf7154b6470e876464da9e412af10894dd5 (patch) | |
tree | 73ed40b30af23ba3e5b94070e478f3e2ca1670c0 /src/parser/interfaces.ts | |
parent | a72ab10c623022860691d6a095b74dea70cc6f69 (diff) | |
download | astro-30cccdf7154b6470e876464da9e412af10894dd5.tar.gz astro-30cccdf7154b6470e876464da9e412af10894dd5.tar.zst astro-30cccdf7154b6470e876464da9e412af10894dd5.zip |
add component state, top-level await support (#26)
Diffstat (limited to '')
-rw-r--r-- | src/parser/interfaces.ts (renamed from src/compiler/interfaces.ts) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/interfaces.ts b/src/parser/interfaces.ts index b77357d23..89c99aa20 100644 --- a/src/compiler/interfaces.ts +++ b/src/parser/interfaces.ts @@ -1,5 +1,5 @@ -import { Node, Program } from 'estree'; -import { SourceMap } from 'magic-string'; +import type { Expression, Program } from '@babel/types'; +import type { SourceMap } from 'magic-string'; interface BaseNode { start: number; @@ -21,7 +21,7 @@ export interface Text extends BaseNode { export interface MustacheTag extends BaseNode { type: 'MustacheTag'; - expression: string; + content: string; } export type DirectiveType = 'Action' | 'Animation' | 'Binding' | 'Class' | 'EventHandler' | 'Let' | 'Ref' | 'Transition'; |