Skip to content

Commit

Permalink
Merge pull request #67 from mercadona/fix-extensions-return-type
Browse files Browse the repository at this point in the history
[Fixed]: Extension return type to void since extensions should not return any Wrap
  • Loading branch information
arturosdg authored Nov 7, 2024
2 parents 6bd873a + ee4011f commit 5601d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface WrapExtensionAPI {
addResponses: (responses: Array<WrapResponse>) => unknown
}

type Extension = <T>(extensionAPI: WrapExtensionAPI, args: T) => Wrap
type Extension = <T>(extensionAPI: WrapExtensionAPI, args: T) => void

type Extensions = {
[key: string]: Extension
Expand Down

0 comments on commit 5601d81

Please sign in to comment.