Skip to content

Instantly share code, notes, and snippets.

@paulohenriquesn
Created November 22, 2023 13:34
Show Gist options
  • Save paulohenriquesn/0816bb4690b59c1e68bc9ccb70dcb7c6 to your computer and use it in GitHub Desktop.
Save paulohenriquesn/0816bb4690b59c1e68bc9ccb70dcb7c6 to your computer and use it in GitHub Desktop.
== 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