Skip to content

Commit 964e29d

Browse files
committed
fix: change type
1 parent 561fb2b commit 964e29d

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

src/config.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,7 @@ export const allIcons = Object.keys(AllIcons).filter(v=>/.*(Outlined|Filled|TwoT
1111

1212
export { allComponents } from "./antdv"
1313

14-
const defaultInclude: RegExp[] = [
15-
/\.vue$/,
16-
/\.vue\?vue/,
17-
/\.vue\?v=/,
18-
/\.((c|m)?j|t)sx?$/
19-
]
20-
21-
const defaultExclude: RegExp[] = [
22-
/[\\/]node_modules[\\/]/,
23-
/[\\/]\.git[\\/]/,
24-
/[\\/]\.nuxt[\\/]/
25-
]
26-
2714
export const defaults:Options = {
28-
include: defaultInclude,
29-
exclude: defaultExclude,
3015
components: allComponents,
3116
icons: allIcons,
3217
imports: allImports

src/types.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
export type PresetImport = string | [name: string, as?: string, from?: string]
1+
export type PresetImport = string
22

33

4-
/** Used to filter files that need to automatically import styles and other functions */
5-
export interface TransformOptions {
6-
include: RegExp[]
7-
exclude: RegExp[]
8-
}
9-
10-
export interface Options extends TransformOptions {
11-
icons: false | string[]
12-
components: false | string[]
13-
imports: string[]
4+
export interface Options {
5+
icons: false | PresetImport[]
6+
components: false | PresetImport[]
7+
imports: PresetImport[]
148
}

0 commit comments

Comments
 (0)