diff options
author | 2021-08-16 16:43:06 -0400 | |
---|---|---|
committer | 2021-08-16 16:43:06 -0400 | |
commit | 78b5bde14c167b289a20b479d4fa4790eb9165aa (patch) | |
tree | 3a86c1d8bea35dbe0012859452d1495381d010b0 /packages/astro/src/compiler/codegen/interfaces.ts | |
parent | 47025a7c7d22870cdaaec9aefb38d79524ba339e (diff) | |
download | astro-78b5bde14c167b289a20b479d4fa4790eb9165aa.tar.gz astro-78b5bde14c167b289a20b479d4fa4790eb9165aa.tar.zst astro-78b5bde14c167b289a20b479d4fa4790eb9165aa.zip |
Astro.resolve (#1085)
* add: Astro.resolve
* Add docs and tests for Astro.resolve
* Add warnings when using string literals
* Prevent windows errors
* Adds a changeset
* Use the astro logger to log the warning
* Use the .js extension
* Dont warn for data urls
* Rename nonRelative and better match
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
Diffstat (limited to 'packages/astro/src/compiler/codegen/interfaces.ts')
-rw-r--r-- | packages/astro/src/compiler/codegen/interfaces.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/astro/src/compiler/codegen/interfaces.ts b/packages/astro/src/compiler/codegen/interfaces.ts new file mode 100644 index 000000000..a487b85e9 --- /dev/null +++ b/packages/astro/src/compiler/codegen/interfaces.ts @@ -0,0 +1,10 @@ +import type { Expression, TemplateNode } from '@astrojs/parser'; + +export interface Attribute { + start: number; + end: number; + type: 'Attribute' | 'Spread'; + name: string; + value: TemplateNode[] | boolean; + expression?: Expression; +}
\ No newline at end of file |