Skip to content

Commit ac2fb63

Browse files
fix: vite 빌드 에러 처리 #122
1 parent 7f20db3 commit ac2fb63

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

src/helper/utilities.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
declare class PivotData {
2+
constructor(inputProps?: any)
3+
props: any
4+
getRowKeys(): any[]
5+
getColKeys(): any[]
6+
getAggregator(rowKey: any, colKey: any): any
7+
[key: string]: any
8+
}
9+
10+
declare const aggregators: Record<string, any>
11+
declare const aggregatorTemplates: Record<string, any>
12+
declare const locales: Record<string, any>
13+
declare const naturalSort: (a: any, b: any) => number
14+
declare const numberFormat: (opts?: any) => any
15+
declare const getSort: any
16+
declare const sortAs: any
17+
declare const derivers: any
18+
19+
export {
20+
PivotData,
21+
aggregators,
22+
aggregatorTemplates,
23+
locales,
24+
naturalSort,
25+
numberFormat,
26+
getSort,
27+
sortAs,
28+
derivers
29+
}

vite.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ export default defineConfig({
2020
outDir: 'dist/types',
2121
staticImport: true,
2222
insertTypesEntry: true,
23-
rollupTypes: true
23+
rollupTypes: true,
24+
compilerOptions: {
25+
paths: {
26+
'@/helper/utilities': ['./src/helper/utilities.d.ts']
27+
}
28+
}
2429
})
2530
],
2631
build: {

0 commit comments

Comments
 (0)