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

Feat: Test-cases #3

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Feat: Test-cases #3

wants to merge 7 commits into from

Conversation

rkmonarch
Copy link
Contributor

No description provided.

@@ -2,11 +2,14 @@ import axios from "axios";
import Apis from "../utils/api-config";
import { Headers } from "../types";

export const _get = async (owner: string, headers:Headers): Promise<any[]> => {
Copy link
Member

Choose a reason for hiding this comment

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

instead of removing Headers type, you can keep the same Headers type but change Headers from z.object to z.union and then mention 2 objects in it followed by strict() - https://zod.dev/?id=strict https://zod.dev/?id=unions

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