Skip to content

Commit 00704b2

Browse files
committed
Fix tsc errors
1 parent a75b0ed commit 00704b2

20 files changed

Lines changed: 530 additions & 259 deletions

File tree

@types/astro-vtbot.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
declare module 'astro-vtbot' {
2+
import type { AstroIntegration } from 'astro'
3+
4+
interface VtbotOptions {
5+
[key: string]: unknown
6+
}
7+
8+
const vtbot: (options?: VtbotOptions) => AstroIntegration
9+
export default vtbot
10+
}

@types/astro.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '*.astro' {
2+
import type { AstroComponentFactory } from 'astro'
3+
const component: AstroComponentFactory
4+
export default component
5+
}

@types/unstorage/index.d.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
declare module 'unstorage' {
2+
const createStorage: any
3+
export default createStorage
4+
}
5+
6+
declare module 'unstorage/*' {
7+
const driver: any
8+
export default driver
9+
}
10+
11+
declare module 'unstorage/*.mjs' {
12+
const driver: any
13+
export default driver
14+
}
15+
16+
declare module 'unstorage/drivers' {
17+
const driver: any
18+
export default driver
19+
}
20+
21+
declare module 'unstorage/drivers/*' {
22+
const driver: any
23+
export default driver
24+
}
25+
26+
declare module 'unstorage/drivers/*.mjs' {
27+
const driver: any
28+
export default driver
29+
}
30+
31+
declare module 'unstorage/drivers/utils/*' {
32+
const driver: any
33+
export default driver
34+
}

eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ export default [
360360
'src/lib/config/environmentServer.ts',
361361
'src/lib/config/siteUrlServer.ts',
362362
'src/pages/api/_environment/index.ts',
363+
'src/pages/api/_environment/environmentApi.ts',
363364
],
364365
rules: {
365366
'no-restricted-syntax': [

0 commit comments

Comments
 (0)