Skip to content

refactor: create and export function handler types#1878

Draft
CorieW wants to merge 1 commit intomasterfrom
@invertase/export-handler-types
Draft

refactor: create and export function handler types#1878
CorieW wants to merge 1 commit intomasterfrom
@invertase/export-handler-types

Conversation

@CorieW
Copy link
Copy Markdown
Member

@CorieW CorieW commented Apr 30, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request performs a comprehensive refactoring across the v1 and v2 provider suites to introduce named exported types for all event handler signatures. By replacing inline function definitions with these specific types—such as OnWriteHandler, OnCallHandler, and BeforeUserCreatedHandler—the changes significantly improve code legibility and provide a better developer experience for users who need to explicitly type their handler functions. Minor adjustments were also made to import statements and internal type assertions to ensure consistency. I have no feedback to provide as the changes are purely structural and improve the overall type safety of the library.

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.

2 participants