@elysiajs/openapi 1.4.15 → 2.0.0-exp.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -125
- package/bun.lock +28 -28
- package/dist/cjs/gen/index.js +295 -9240
- package/dist/cjs/index.d.ts +18 -26
- package/dist/cjs/index.js +947 -9905
- package/dist/cjs/openapi.d.ts +12 -5
- package/dist/cjs/openapi.js +28 -38
- package/dist/cjs/types.d.ts +2 -2
- package/dist/gen/index.d.ts +7 -2
- package/dist/gen/index.mjs +291 -9243
- package/dist/index.d.ts +18 -26
- package/dist/index.mjs +947 -9911
- package/dist/openapi.d.ts +12 -5
- package/dist/openapi.mjs +28 -38
- package/dist/types.d.ts +2 -2
- package/memory/MIGRATION.md +241 -0
- package/package.json +92 -90
- package/bunfig.toml +0 -2
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
|
+
import type { AnyElysia } from 'elysia/base';
|
|
2
3
|
import type { ElysiaOpenAPIConfig } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Plugin for [elysia](https://github.com/elysiajs/elysia) that auto-generate OpenAPI documentation page.
|
|
5
6
|
*
|
|
6
7
|
* @see https://github.com/elysiajs/elysia-swagger
|
|
7
8
|
*/
|
|
8
|
-
export declare const openapi: <const Enabled extends boolean = true, const Path extends string = "/openapi">({ enabled, path, provider, specPath, documentation, exclude, swagger, scalar, references, mapJsonSchema, embedSpec }?: ElysiaOpenAPIConfig<Enabled, Path>) => Elysia<"", {
|
|
9
|
-
decorator: {};
|
|
10
|
-
store: {};
|
|
11
|
-
derive: {};
|
|
12
|
-
resolve: {};
|
|
13
|
-
}, {
|
|
9
|
+
export declare const openapi: <const Enabled extends boolean = true, const Path extends string = "/openapi">({ enabled, path, provider, specPath, documentation, exclude, swagger, scalar, references, mapJsonSchema, embedSpec }?: ElysiaOpenAPIConfig<Enabled, Path>) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
|
|
14
10
|
typebox: {};
|
|
15
|
-
error:
|
|
16
|
-
}, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
response: {};
|
|
23
|
-
}, {}, {
|
|
24
|
-
derive: {};
|
|
25
|
-
resolve: {};
|
|
26
|
-
schema: {};
|
|
27
|
-
standaloneSchema: {};
|
|
28
|
-
response: {};
|
|
11
|
+
error: [];
|
|
12
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral> | ((host: AnyElysia) => Elysia<any, any, {
|
|
13
|
+
decorator: any;
|
|
14
|
+
store: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
};
|
|
17
|
+
derive: any;
|
|
29
18
|
}, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
typebox: any;
|
|
20
|
+
error: any[];
|
|
21
|
+
}, any, any, any, {
|
|
22
|
+
derive: any;
|
|
23
|
+
schema: any;
|
|
24
|
+
schemas: any;
|
|
25
|
+
response: any;
|
|
26
|
+
error: any[];
|
|
27
|
+
}>);
|
|
36
28
|
export { fromTypes } from './gen';
|
|
37
29
|
export { toOpenAPISchema, withHeaders } from './openapi';
|
|
38
30
|
export type { ElysiaOpenAPIConfig };
|