forked from elysiajs/elysia-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
2,364 additions
and
1,817 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
|
||
node_modules | ||
.pnpm-debug.log | ||
dist | ||
|
||
build | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Elysia } from 'elysia'; | ||
import type { ElysiaSwaggerConfig } from './types'; | ||
/** | ||
* Plugin for [elysia](https://github.com/elysiajs/elysia) that auto-generate Swagger page. | ||
* | ||
* @see https://github.com/elysiajs/elysia-swagger | ||
*/ | ||
export declare const swagger: <Path extends string = "/swagger">({ provider, scalarVersion, scalarCDN, scalarConfig, documentation, version, excludeStaticFile, path, exclude, swaggerOptions, theme, autoDarkMode, excludeMethods, excludeTags }?: ElysiaSwaggerConfig<Path>) => Promise<Elysia<"", false, { | ||
decorator: {}; | ||
store: {}; | ||
derive: {}; | ||
resolve: {}; | ||
}, { | ||
type: {}; | ||
error: {}; | ||
}, { | ||
schema: {}; | ||
macro: {}; | ||
macroFn: {}; | ||
}, {}, { | ||
derive: {}; | ||
resolve: {}; | ||
schema: {}; | ||
}, { | ||
derive: {}; | ||
resolve: {}; | ||
schema: {}; | ||
}>>; | ||
export type { ElysiaSwaggerConfig }; | ||
export default swagger; |
Oops, something went wrong.