From 7eeafffa55cbc40aa9c66bccdd58ca0a225ffcad Mon Sep 17 00:00:00 2001 From: Max Milton Date: Mon, 27 Jul 2020 11:51:16 +1000 Subject: [PATCH] Fix svelte compiler preprecess option type --- index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index a139f8c..5daec7c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,5 @@ import { Plugin, RollupWarning } from 'rollup'; - -interface PreprocessOptions extends Record void> {} +import { PreprocessorGroup } from 'svelte/types/compiler/preprocess'; interface Css { code: any; @@ -55,7 +54,7 @@ interface Options { * Optionally, preprocess components with svelte.preprocess: * https://svelte.dev/docs#svelte_preprocess */ - preprocess?: PreprocessOptions; + preprocess?: PreprocessorGroup | PreprocessorGroup[]; // { // style: ({ content }) => { // return transformStyles(content);