From ee5b1a0d5203c883c246c4319431b5650b6aed35 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Fri, 28 Aug 2020 10:36:25 -0700 Subject: [PATCH 1/3] fix(types): extend `CompileOptions` interface directly --- index.d.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/index.d.ts b/index.d.ts index cf1f10a..75ff074 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,6 @@ import { Plugin, RollupWarning } from 'rollup'; import { PreprocessorGroup } from 'svelte/types/compiler/preprocess'; +import { CompileOptions } from 'svelte/types/compiler/interfaces'; interface Css { code: any; @@ -23,7 +24,7 @@ declare class CssWriter { toString(): string; } -interface Options { +interface Options extends CompileOptions { /** * By default, all .svelte and .html files are compiled * @default ['.html', '.svelte'] @@ -39,7 +40,8 @@ interface Options { /** * @type {IncludeAndExclude} */ - include?: string; + include?: string; + /** * @type {IncludeAndExclude} */ @@ -73,13 +75,6 @@ interface Options { */ css?: (css: CssWriter) => any; - - /** - * Compile Svelte components to custom elements (aka web components). - * @default false - */ - customElement?: boolean; - /** * let Rollup handle all other warnings normally */ From 4db3f9e79a770294c601d8ae3a9214dc59b48ee7 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Fri, 28 Aug 2020 10:43:34 -0700 Subject: [PATCH 2/3] chore: revert spacing --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 75ff074..0ea8ca9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -40,7 +40,7 @@ interface Options extends CompileOptions { /** * @type {IncludeAndExclude} */ - include?: string; + include?: string; /** * @type {IncludeAndExclude} From 187381b64a91ae31a21f6b731c89406e479e4385 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Sun, 30 Aug 2020 17:09:21 -0700 Subject: [PATCH 3/3] fix(types): remove redundant `generate` options --- index.d.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index 0ea8ca9..db4eb2c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -47,12 +47,6 @@ interface Options extends CompileOptions { */ exclude?: string; - /** - * By default, the client-side compiler is used. You - * can also use the server-side rendering compiler - */ - generate?: 'dom' | 'ssr' | false; - /** * Optionally, preprocess components with svelte.preprocess: * https://svelte.dev/docs#svelte_preprocess