Skip to content

Commit 1871d5f

Browse files
authored
fix(types): extend CompileOptions interface directly (#126)
* fix(types): extend `CompileOptions` interface directly * chore: revert spacing * fix(types): remove redundant `generate` options
1 parent 1110538 commit 1871d5f

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

index.d.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Plugin, RollupWarning } from 'rollup';
22
import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
3+
import { CompileOptions } from 'svelte/types/compiler/interfaces';
34

45
interface Css {
56
code: any;
@@ -25,7 +26,7 @@ declare class CssWriter {
2526

2627
type CssEmitter = (css: CssWriter) => any;
2728

28-
interface Options {
29+
interface Options extends CompileOptions {
2930
/**
3031
* By default, all .svelte and .html files are compiled
3132
* @default ['.html', '.svelte']
@@ -42,17 +43,12 @@ interface Options {
4243
* @type {IncludeAndExclude}
4344
*/
4445
include?: string;
46+
4547
/**
4648
* @type {IncludeAndExclude}
4749
*/
4850
exclude?: string;
4951

50-
/**
51-
* By default, the client-side compiler is used. You
52-
* can also use the server-side rendering compiler
53-
*/
54-
generate?: 'dom' | 'ssr' | false;
55-
5652
/**
5753
* Optionally, preprocess components with svelte.preprocess:
5854
* https://svelte.dev/docs#svelte_preprocess
@@ -75,13 +71,6 @@ interface Options {
7571
*/
7672
css?: false | CssEmitter;
7773

78-
79-
/**
80-
* Compile Svelte components to custom elements (aka web components).
81-
* @default false
82-
*/
83-
customElement?: boolean;
84-
8574
/**
8675
* let Rollup handle all other warnings normally
8776
*/

0 commit comments

Comments
 (0)