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

Fix primary key types #500

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Fix primary key types #500

merged 2 commits into from
Jul 19, 2024

Conversation

ssanjay1
Copy link
Contributor

No description provided.

@@ -483,7 +483,7 @@ export type Osdk<Q extends ObjectTypeDefinition<any> | InterfaceDefinition<any,
__apiName: Q["apiName"] & {
__OsdkType?: Q["apiName"];
};
__primaryKey: Q extends ObjectTypeDefinition<any> ? OsdkObjectPrimaryKeyType<Q> : unknown;
__primaryKey: Q extends ObjectTypeDefinition<any> ? OsdkObjectPrimaryKeyType<Q> : string | number | boolean;
Copy link
Member

Choose a reason for hiding this comment

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

I know its technically correct that it can be a boolean but its just so absurd (a table with 2 rows) that it just won't happen.

@ssanjay1 ssanjay1 merged commit d8edf10 into main Jul 19, 2024
7 checks passed
@ssanjay1 ssanjay1 deleted the ssanjay/fixPrimaryKeyType branch July 19, 2024 18:11
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