@moostjs/swagger 0.5.21 → 0.5.23

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/dist/index.d.ts CHANGED
@@ -1,11 +1,8 @@
1
- import * as _prostojs_mate from '@prostojs/mate';
2
- import * as moost from 'moost';
3
1
  import { z } from '@moostjs/zod';
2
+ import { Mate, TMoostMetadata, TMateParamMeta } from 'moost';
4
3
  import { THeaderHook, TStatusHook } from '@wooksjs/event-http';
5
4
 
6
5
  type TFunction = Function;
7
- interface TEmpty {
8
- }
9
6
 
10
7
  interface TSwaggerOptions {
11
8
  title?: string;
@@ -46,10 +43,10 @@ interface TSwaggerSchema {
46
43
  not?: TSwaggerSchema;
47
44
  }
48
45
 
49
- declare function getSwaggerMate(): _prostojs_mate.Mate<moost.TMoostMetadata<TEmpty> & TSwaggerMate & {
50
- params: (TEmpty & _prostojs_mate.TMateParamMeta)[];
51
- }, moost.TMoostMetadata<TEmpty> & TSwaggerMate & {
52
- params: (TEmpty & _prostojs_mate.TMateParamMeta)[];
46
+ declare function getSwaggerMate(): Mate<TMoostMetadata & TSwaggerMate & {
47
+ params: Array<TMateParamMeta>;
48
+ }, TMoostMetadata & TSwaggerMate & {
49
+ params: Array<TMateParamMeta>;
53
50
  }>;
54
51
  interface TSwaggerMate {
55
52
  swaggerTags: string[];