File tree Expand file tree Collapse file tree 9 files changed +37
-1029
lines changed Expand file tree Collapse file tree 9 files changed +37
-1029
lines changed Original file line number Diff line number Diff line change 1
- import { Elysia , InternalRoute } from 'elysia'
1
+ import { Elysia } from 'elysia'
2
2
import { swagger } from '../src/index'
3
- import { plugin } from './plugin'
4
- import { registerSchemaPath } from '../src/utils'
5
3
6
4
const app = new Elysia ( )
7
5
. use (
@@ -39,6 +37,5 @@ const app = new Elysia()
39
37
}
40
38
} )
41
39
)
42
- // .use(plugin)
43
40
. get ( '/id/:id?' , 'a' )
44
41
. listen ( 3000 )
Original file line number Diff line number Diff line change 36
36
"types" : " ./dist/scalar/theme.d.ts" ,
37
37
"import" : " ./dist/scalar/theme.mjs" ,
38
38
"require" : " ./dist/cjs/scalar/theme.js"
39
- },
40
- "./scalar/types" : {
41
- "types" : " ./dist/scalar/types/index.d.ts" ,
42
- "import" : " ./dist/scalar/types/index.mjs" ,
43
- "require" : " ./dist/cjs/scalar/types/index.js"
44
39
}
45
40
},
46
41
"keywords" : [
66
61
},
67
62
"devDependencies" : {
68
63
"@apidevtools/swagger-parser" : " ^10.1.0" ,
69
- "@scalar/api-reference" : " ^1.25.21" ,
70
64
"@types/bun" : " 1.1.6" ,
71
65
"elysia" : " >= 1.1.0-rc.2" ,
72
66
"eslint" : " 9.6.0" ,
73
67
"tsup" : " ^8.1.0" ,
74
68
"typescript" : " ^5.5.3"
75
69
},
76
70
"dependencies" : {
71
+ "@scalar/types" : " ^0.0.12" ,
77
72
"openapi-types" : " ^12.1.3" ,
78
73
"pathe" : " ^1.1.2"
79
74
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { ScalarRender } from './scalar'
7
7
import { filterPaths , registerSchemaPath } from './utils'
8
8
9
9
import type { OpenAPIV3 } from 'openapi-types'
10
- import type { ReferenceConfiguration } from '@scalar/api-reference '
10
+ import type { ReferenceConfiguration } from '@scalar/types '
11
11
import type { ElysiaSwaggerConfig } from './types'
12
12
13
13
/**
Original file line number Diff line number Diff line change 1
1
import scalarElysiaTheme from './theme'
2
2
import type { OpenAPIV3 } from 'openapi-types'
3
- import type { ReferenceConfiguration } from '@scalar/api-reference '
3
+ import type { ReferenceConfiguration } from '@scalar/types '
4
4
5
5
export const ScalarRender = (
6
6
info : OpenAPIV3 . InfoObject ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments