Skip to content

Commit

Permalink
fix: [aaplication] - updated a contract interface useCases
Browse files Browse the repository at this point in the history
#6
Essa interface estava gerando erro nos testes, pois a importação estava falhando
  • Loading branch information
Christiangsn committed Mar 8, 2023
1 parent 5ee5f1a commit a1e22d2
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/@application/contracts/app.contracts.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
export interface IHttpResponse<Data = any> {
statusCode: number
data: Data
}
/**
* Validation request data
* Create a new instances domain
* Verify incorrect parameters
*/
export interface IUseCasesAPP<DTO> {
run: (props: DTO) => Promise<IHttpResponse>
export interface IUseCases<DTO, Return> {
run: (props: DTO) => Promise<Return>
}

0 comments on commit a1e22d2

Please sign in to comment.