Skip to content

Commit 3f73102

Browse files
committed
regenerate types
1 parent 26696ec commit 3f73102

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

packages/svelte/types/index.d.ts

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -963,12 +963,23 @@ declare module 'svelte/compiler' {
963963
| LegacyTitle
964964
| LegacyWindow;
965965

966+
interface LegacyStyle extends BaseNode_1 {
967+
type: 'Style';
968+
attributes: any[];
969+
content: {
970+
start: number;
971+
end: number;
972+
styles: string;
973+
};
974+
children: any[];
975+
}
976+
966977
interface LegacySelector extends BaseNode_1 {
967978
type: 'Selector';
968979
children: Array<Css.Combinator | Css.SimpleSelector>;
969980
}
970981

971-
type LegacyCssNode = LegacySelector;
982+
type LegacyCssNode = LegacyStyle | LegacySelector;
972983

973984
type LegacySvelteNode =
974985
| LegacyConstTag
@@ -1089,7 +1100,7 @@ declare module 'svelte/compiler' {
10891100
options: SvelteOptions | null;
10901101
fragment: Fragment;
10911102
/** The parsed `<style>` element, if exists */
1092-
css: Style | null;
1103+
css: Css.StyleSheet | null;
10931104
/** The parsed `<script>` element, if exists */
10941105
instance: Script | null;
10951106
/** The parsed `<script context="module">` element, if exists */
@@ -1327,6 +1338,7 @@ declare module 'svelte/compiler' {
13271338
svg: boolean;
13281339
/** `true` if contains a SpreadAttribute */
13291340
has_spread: boolean;
1341+
scoped: boolean;
13301342
};
13311343
}
13321344

@@ -1356,6 +1368,7 @@ declare module 'svelte/compiler' {
13561368
* `null` means we can't know statically.
13571369
*/
13581370
svg: boolean | null;
1371+
scoped: boolean;
13591372
};
13601373
}
13611374

@@ -1503,17 +1516,6 @@ declare module 'svelte/compiler' {
15031516
context: string;
15041517
content: Program;
15051518
}
1506-
1507-
interface Style extends BaseNode {
1508-
type: 'Style';
1509-
attributes: any[]; // TODO
1510-
children: any[]; // TODO add CSS node types
1511-
content: {
1512-
start: number;
1513-
end: number;
1514-
styles: string;
1515-
};
1516-
}
15171519
/**
15181520
* The result of a preprocessor run. If the preprocessor does not return a result, it is assumed that the code is unchanged.
15191521
*/

0 commit comments

Comments
 (0)