framework-do-dede 0.0.6 → 0.0.8

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.
@@ -1,3 +1,3 @@
1
- export default interface HttpMiddleware {
1
+ export declare interface HttpMiddleware {
2
2
  execute(input: any): Promise<any>
3
- };
3
+ }
package/dist/UseCase.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export default interface UseCase<Input, Output> {
1
+ export declare interface UseCase<Input, Output> {
2
2
  execute(input: Input): Promise<Output>
3
- };
3
+ }
@@ -1,3 +1,3 @@
1
- export default interface Validation {
1
+ export declare interface Validation {
2
2
  validate(input: any): any;
3
- };
3
+ }
package/dist/index.d.ts CHANGED
@@ -1,31 +1,16 @@
1
1
  import { Auth, Controller, Delete, Get, Inject, Middleware, Patch, Post, Put, Validator } from './decorators';
2
2
  import { Dede, Options as DedeOptions, Register as DedeRegister } from './dede';
3
- import { HttpMiddleware as HttpMiddlewareInterface, UseCase as UseCaseInterface, Validation as ValidationInterface } from './protocols';
4
3
  import { ServerError } from './http';
5
4
  import { UseCaseHandler } from './handlers';
6
5
 
7
- declare type UseCase = UseCaseInterface<any, any>
8
- type Validation = ValidationInterface
9
- type HttpMiddleware = HttpMiddlewareInterface
10
-
11
- Dede,
12
- DedeRegister,
13
- DedeOptions,
14
- UseCaseHandler,
15
- ServerError,
16
- HttpMiddleware,
17
- Validation,
18
- UseCase,
19
- Controller,
20
- Post,
21
- Put,
22
- Get,
23
- Delete,
24
- Patch,
25
- Validator,
26
- Middleware,
27
- Auth,
28
- Inject
6
+ export declare interface HttpMiddleware {
7
+ execute(input: any): Promise<any>
8
+ }
9
+ export declare interface UseCase<Input, Output> {
10
+ execute(input: Input): Promise<Output>
11
+ }
12
+ export declare interface Validation {
13
+ validate(input: any): any;
29
14
  }
30
15
 
31
16
  export {
@@ -34,9 +19,6 @@ export {
34
19
  DedeOptions,
35
20
  UseCaseHandler,
36
21
  ServerError,
37
- HttpMiddleware,
38
- Validation,
39
- UseCase,
40
22
  Controller,
41
23
  Post,
42
24
  Put,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-do-dede",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",