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

Fix OperationParams typing #5

Open
yordis opened this issue Mar 16, 2022 · 1 comment
Open

Fix OperationParams typing #5

yordis opened this issue Mar 16, 2022 · 1 comment

Comments

@yordis
Copy link
Member

yordis commented Mar 16, 2022

Steps to Reproduce

export declare type OperationParams<Path = unknown, Query = unknown, Body = unknown> = {
    path?: Path;
    query?: Query;
    body?: Body;
    options?: {
        signal?: AbortSignal;
    };
};

Remove the `?` and pass `TPath` as `TPath = any | undefined` instead, same for query and body.
@stale
Copy link

stale bot commented May 26, 2022

This issue has been automatically marked as "Stale: Discard". If this issue still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant