Skip to content

Commit 552eaeb

Browse files
authored
fix(types): export PluginOptions (#976)
1 parent f06beb3 commit 552eaeb

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.changeset/plenty-weeks-battle.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
export PluginOptions interface

packages/vite-plugin-svelte/src/public.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface PluginOptionsInline extends PluginOptions {
1515
configFile?: string | false;
1616
}
1717

18-
interface PluginOptions {
18+
export interface PluginOptions {
1919
/**
2020
* A `picomatch` pattern, or array of patterns, which specifies the files the plugin should
2121
* operate on. By default, all svelte files are included.

packages/vite-plugin-svelte/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare module '@sveltejs/vite-plugin-svelte' {
1515
configFile?: string | false;
1616
}
1717

18-
interface PluginOptions {
18+
export interface PluginOptions {
1919
/**
2020
* A `picomatch` pattern, or array of patterns, which specifies the files the plugin should
2121
* operate on. By default, all svelte files are included.

packages/vite-plugin-svelte/types/index.d.ts.map

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"file": "index.d.ts",
44
"names": [
55
"Options",
6+
"PluginOptions",
67
"SvelteConfig",
78
"VitePreprocessOptions",
89
"svelte",
@@ -21,5 +22,5 @@
2122
null,
2223
null
2324
],
24-
"mappings": ";;;;aAIYA,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6GFC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8EZC,qBAAqBA;;;;;;;;;;;;;iBCvKtBC,MAAMA;iBCTNC,cAAcA;iBCgBRC,gBAAgBA"
25+
"mappings": ";;;;aAIYA,OAAOA;;;;;;;;;;;;;kBAaFC,aAAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgGbC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8EZC,qBAAqBA;;;;;;;;;;;;;iBCvKtBC,MAAMA;iBCTNC,cAAcA;iBCgBRC,gBAAgBA"
2526
}

0 commit comments

Comments
 (0)