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

Redefine Endpoint to avoid Payload ambiguity #178

Open
github-actions bot opened this issue Jan 3, 2025 · 0 comments
Open

Redefine Endpoint to avoid Payload ambiguity #178

github-actions bot opened this issue Jan 3, 2025 · 0 comments
Assignees
Labels
datadirect packages/datadirect

Comments

@github-actions
Copy link

github-actions bot commented Jan 3, 2025

Needs separate body and searchParams, along with multiple methods at the same endpoint (cf. #63)

* TODO Redefine Endpoint to avoid Payload ambiguity
* Needs separate body and searchParams, along with multiple methods at the same endpoint (cf. #63)
*/

export type Response = JSONValue;

/*
 * TODO Redefine Endpoint to avoid Payload ambiguity
 *   Needs separate body and searchParams, along with multiple methods at the same endpoint (cf. #63)
 */
export type Method = 'GET' | 'POST' | 'DELETE';

export type Payload = Record<string, JSONPrimitiveTypes> | JSONObject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datadirect packages/datadirect
Projects
None yet
Development

No branches or pull requests

1 participant