Skip to content

Comments

Advanced typings for a strongly typed stores spec#2086

Draft
dfahlander wants to merge 3 commits intomasterfrom
strongly-typed-schema
Draft

Advanced typings for a strongly typed stores spec#2086
dfahlander wants to merge 3 commits intomasterfrom
strongly-typed-schema

Conversation

@dfahlander
Copy link
Collaborator

@dfahlander dfahlander commented Oct 21, 2024

Use TS template strings to control the dexie syntax at compile time and infer properties, making sure the entity declaration and the syntax specifications match.

@dfahlander
Copy link
Collaborator Author

This PR can probably be closed but kept as a reference to what could be doable. The problem with this could be that it uses template strings and conditionals too heavily, making it prone to strange typescript issues for the users.

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.

1 participant