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!: make nullable scalar parameters optional #482

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

adelsz
Copy link
Owner

@adelsz adelsz commented Jan 27, 2023

Nullable scalar parameters can now be omitted from parameter objects:

export interface IGetNotificationsParams {
-  userId: string | null | void;
+  userId?: string | null | void;
}

Meaning you no longer have to pass undefined explicitly to such queries:

const result = findBookNameOrRank.run({
  rank: 1,
- name: undefined
}, client);

@vercel
Copy link

vercel bot commented Jan 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
pgtyped ✅ Ready (Inspect) Visit Preview Jan 27, 2023 at 6:09PM (UTC)

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.

None yet

1 participant