Commit dd8ddac
authored
fix: Fix typings for eventwebhook.d.ts PublicKey (#1351)
Installing @sendgrid/eventwebhook in a project using typescript cannot properly compile because starkbank-ecdsa does not provide any typings and none are available in DefinitelyTyped project either.
Right now the only way to use the module is to ourselves provide a definition of starkbank-ecdsa OR patch-package @sendgrid/eventwebhook
I've decided to change the import statement with a minimal interface of PublicKey which should be enough to use the package properly in a typescript project.
Technically speaking, @types/node is also required because you use Buffer in the types, but a typescript project without it would be weird so I think we can let that one as-is.1 parent d684055 commit dd8ddac
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
| |||
0 commit comments