Skip to content

Commit

Permalink
fix(server): generarting invaild typedefs (#91)
Browse files Browse the repository at this point in the history
Destructuring like `{ catch: fail }` causes TS to generate invalid typedfes
  • Loading branch information
Gozala authored Sep 21, 2022
1 parent 46f00e9 commit f528031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class Server {
service,
encoder,
decoder,
catch: fail,
principal = Principal,
canIssue = (capability, issuer) =>
capability.with === issuer || issuer === id.did(),
...context
...rest
}) {
const { catch: fail, ...context } = rest
this.context = { id, principal, canIssue, ...context }
this.service = service
this.encoder = encoder
Expand Down

0 comments on commit f528031

Please sign in to comment.