Created
November 22, 2023 13:34
-
-
Save paulohenriquesn/0816bb4690b59c1e68bc9ccb70dcb7c6 to your computer and use it in GitHub Desktop.
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
== arquivo 1 == | |
export namespace CreateRecipientGateway { | |
export type Input = { | |
firstName: string | |
} | |
export type Output = { id: string } | |
export interface Contract { | |
handle(i: Input): Promise<Output> | |
} | |
} | |
== arquivo q impleementa = | |
export class CreateWiseRecipient extends BaseAPI implements CreateRecipientGateway.Contract { | |
async handle(input: CreateRecipientGateway.Input): CreateRecipientGateway.Outupt { | |
.... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment