Skip to content

Add TypeScript declaration file#32

Merged
jstayton merged 1 commit intodevelopmentfrom
typescript-declaration-file
Mar 19, 2026
Merged

Add TypeScript declaration file#32
jstayton merged 1 commit intodevelopmentfrom
typescript-declaration-file

Conversation

@jstayton
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds TypeScript typings to the @truepic/webhook-verifier package so TS consumers get type checking and editor IntelliSense when using the existing CommonJS API.

Changes:

  • Added src/main.d.ts declaration file describing verifyTruepicWebhook and its error type.
  • Wired the declaration file into publishing/consumption by adding "types" to package.json.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/main.d.ts Introduces TS declarations for the exported function and related error/options types.
package.json Points TypeScript to the shipped .d.ts via the "types" field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jstayton jstayton merged commit c77bbed into development Mar 19, 2026
8 checks passed
@jstayton jstayton deleted the typescript-declaration-file branch March 19, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants