Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payload typing #93

Open
emilesabatier opened this issue Feb 27, 2025 · 0 comments
Open

Payload typing #93

emilesabatier opened this issue Feb 27, 2025 · 0 comments

Comments

@emilesabatier
Copy link

At the moment, the payload is typed as

type Payload = Record<string, unknown> | {
        [key: string]: unknown;
    } | null | undefined;

It is not possible to add a more specific type. It could be interesting to have the possibility to specify a schema and rely on type inference.

(Maybe looking at something like this to accept multiple valdiation libs ? )

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

No branches or pull requests

1 participant