Skip to content

feat: add onFile hook - #145

Open
mcollina wants to merge 1 commit into
mainfrom
feat/on-file-hook
Open

mcollina wants to merge 1 commit into
mainfrom
feat/on-file-hook

Conversation

@mcollina

Copy link
Copy Markdown
Member

Add an onFile option that runs after final file selection and stat, including index and extension fallbacks, but before conditional response processing and stream creation. The hook supports asynchronous callbacks and propagates errors unchanged.

This also corrects the TypeScript type of metadata.stat to fs.Stats.

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

This branch has not been deployed

No deployments
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