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: Add exhaustive checks in schema field types #3551

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

DafyddLlyr
Copy link
Contributor

What does this PR do?

@DafyddLlyr DafyddLlyr requested a review from a team August 23, 2024 07:11
Copy link

github-actions bot commented Aug 23, 2024

Removed vultr server and associated DNS entries

@@ -37,7 +38,10 @@ export const getFieldProps = <T extends Field>(props: Props<T>) => ({
* Controller to return correct user input for field in schema
*/
export const InputFields: React.FC<Props<Field>> = (props) => {
switch (props.type) {
// Local variable required for TS to correctly infer the type
const type = props.type;
Copy link
Member

Choose a reason for hiding this comment

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

easy to miss / good to know 👍

@DafyddLlyr DafyddLlyr merged commit 7dcf8a2 into main Aug 23, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/schema-exhaustive-checks branch August 23, 2024 08:15
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