Skip to content

Feat: Test-cases#3

Open
rkmonarch wants to merge 7 commits into
mainfrom
development
Open

Feat: Test-cases#3
rkmonarch wants to merge 7 commits into
mainfrom
development

Conversation

@rkmonarch

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/address-book/get.ts
import Apis from "../utils/api-config";
import { Headers } from "../types";

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

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.

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