Skip to content

Commit d3543da

Browse files
committed
fix: πŸ› replacer preprocessor options types
βœ… Closes: #228
1 parent cf9e825 commit d3543da

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: β€Žpackage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-preprocess",
3-
"version": "4.1.1",
3+
"version": "4.1.2",
44
"license": "MIT",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

Diff for: β€Žsrc/types/options.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@ export interface GlobalStyle {
8181
}
8282

8383
export type Replace = Array<
84-
[RegExp, string] | [RegExp, (substring: string, ...args: any[]) => string]
84+
| [string | RegExp, string]
85+
| [RegExp, (substring: string, ...args: any[]) => string]
8586
>;

0 commit comments

Comments
Β (0)