diff options
author | 2021-03-31 16:46:09 -0400 | |
---|---|---|
committer | 2021-03-31 16:46:09 -0400 | |
commit | d5b15a385153915cad7dbffd0d8893c39059c1ed (patch) | |
tree | 769240e3f6e52c31639f0500d97b87e45f202a6a /src/parser/interfaces.ts | |
parent | d9084ff4ad9e25577846d3eb53046c2f0066097f (diff) | |
download | astro-d5b15a385153915cad7dbffd0d8893c39059c1ed.tar.gz astro-d5b15a385153915cad7dbffd0d8893c39059c1ed.tar.zst astro-d5b15a385153915cad7dbffd0d8893c39059c1ed.zip |
Support for custom elements (#45)
* Support for custom elements
Now you can use custom elements like so in Astro components:
```html
<script type="module" src="./datepicker.js">
<date-picker></date-picker>
```
These will be resolve relative to the current astro component. In the build these modules are run through the same bundle/minify process as components.
* Remove component from public
* Formatting
* Disable empty fn rule
Diffstat (limited to 'src/parser/interfaces.ts')
-rw-r--r-- | src/parser/interfaces.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parser/interfaces.ts b/src/parser/interfaces.ts index 848f48ec9..71b1812a3 100644 --- a/src/parser/interfaces.ts +++ b/src/parser/interfaces.ts @@ -17,6 +17,13 @@ export interface Fragment extends BaseNode { export interface Text extends BaseNode { type: 'Text'; data: string; + raw: string; +} + +export interface Attribute extends BaseNode { + type: 'Attribute'; + name: string; + value: Text[]; } export interface MustacheTag extends BaseNode { |