blockfrost-js icon indicating copy to clipboard operation
blockfrost-js copied to clipboard

Export types for Secure Webhooks payload

Open slowbackspace opened this issue 2 years ago • 0 comments

Accessing the payload's object properties is kinda hard when everyting has type any. We could construct and export interface for each type of Secure Webhooks payload, and it should be rather easy since every payload is composed from existing API responses.

Maybe we could even leverage verifyWebhookSignature as type guard? 🤔

Screenshot 2022-08-10 at 11 46 27

slowbackspace avatar Aug 10 '22 09:08 slowbackspace