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

Allow declaration-only tables for TS users. #1136

Merged
merged 1 commit into from
Oct 14, 2020

Commits on Oct 1, 2020

  1. Allow declaration-only tables for TS users.

    Due to how @babel/plugin-transform-typescript transpiles class fields, we had to change the Typescript recommendation of how to subclass Dexie. This commit makes it possible to go back to the previous recommendation in the docs - do only declare the classes and not have to manually initialize the tables in the constructor.
    
    Plan: Wait with the docs updates until this commit has been released and then for another while until enough people have upgraded their Dexie to that version.
    
    The docs should then be updated to propose a plain declaration of table properties, with an exclamation mark to hint about that the field is there despite not being assigned to in the constructor.
    dfahlander committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    017943f View commit details
    Browse the repository at this point in the history