We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
changeset
Changeset
I might be wrong, but I believe the EmberChangeset return type I used in #641 is not completely correct: https://github.com/poteto/ember-changeset/blob/aac0b2cecf09acc3be24c55265311fe0fb87a9f6/index.d.ts#L15-L16
EmberChangeset
If we pass an EmberChangeset subclass to the options param changeset, the return type won't be EmberChangeset, but the subclass.
For example
class MyChangeset extends EmberChangeset {} const cs = Changeset({foo: "bar"}, () => true, {}, {changeset: MyChangeset})
Then the cs variable will be of type MyChangeset, not EmberChangeset
cs
MyChangeset
@kpfefferle Do you agree?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I might be wrong, but I believe the
EmberChangeset
return type I used in #641 is not completely correct:https://github.com/poteto/ember-changeset/blob/aac0b2cecf09acc3be24c55265311fe0fb87a9f6/index.d.ts#L15-L16
If we pass an EmberChangeset subclass to the options param
changeset
, the return type won't beEmberChangeset
, but the subclass.For example
Then the
cs
variable will be of typeMyChangeset
, notEmberChangeset
@kpfefferle Do you agree?
The text was updated successfully, but these errors were encountered: