File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Adapter } from '@sveltejs/kit' ;
2
2
import { CustomStaticWebAppConfig } from './types/swa' ;
3
3
4
- declare function plugin ( opts ?: {
4
+ type Options = {
5
5
debug ?: boolean ;
6
6
customStaticWebAppConfig ?: CustomStaticWebAppConfig ;
7
- } ) : Adapter ;
8
- export = plugin ;
7
+ } ;
8
+
9
+ export default function plugin ( options ?: Options ) : Adapter ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function validateCustomConfig(config) {
24
24
}
25
25
}
26
26
27
- /** @type {import('.') } */
27
+ /** @type {import('.').default } */
28
28
export default function ( { debug = false , customStaticWebAppConfig = { } } = { } ) {
29
29
return {
30
30
name : 'adapter-azure-swa' ,
Original file line number Diff line number Diff line change 10
10
},
11
11
"exports" : {
12
12
"." : {
13
+ "types" : " ./index.d.ts" ,
13
14
"import" : " ./index.js"
14
15
},
15
16
"./package.json" : " ./package.json"
You can’t perform that action at this time.
0 commit comments