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
boolean-attr-options-issue
npm install && npm run lint
The type of options for attr<BooleanTransform> is undefined instead of { allowNull?: boolean }.
options
attr<BooleanTransform>
undefined
{ allowNull?: boolean }
Source file: https://github.com/MathieuCouette/ember-data-issues/blob/ddc8473e5e1ee309d34f8663829f49939d5cdaeb/app/models/user.ts
Argument of type '{ allowNull: boolean; }' is not assignable to parameter of type 'undefined'.
This is seemingly because BooleanTransform fails to extend TypedTransformInstance.
BooleanTransform
TypedTransformInstance
├── @babel/core@7.24.9 ├── @ember-data-types/adapter@5.3.8 ├── @ember-data-types/graph@5.3.8 ├── @ember-data-types/json-api@5.3.8 ├── @ember-data-types/legacy-compat@5.3.8 ├── @ember-data-types/model@5.3.8 ├── @ember-data-types/request-utils@5.3.8 ├── @ember-data-types/request@5.3.8 ├── @ember-data-types/serializer@5.3.8 ├── @ember-data-types/store@5.3.8 ├── @ember-data-types/tracking@5.3.8 ├── @ember/optional-features@2.1.0 ├── @ember/string@3.1.1 ├── @ember/test-helpers@3.3.0 ├── @glimmer/component@1.1.2 ├── @glimmer/tracking@1.1.2 ├── @glint/environment-ember-loose@1.4.0 ├── @glint/template@1.4.0 ├── @tsconfig/ember@3.0.8 ├── @types/qunit@2.19.10 ├── @types/rsvp@4.0.9 ├── @typescript-eslint/eslint-plugin@6.21.0 ├── @typescript-eslint/parser@6.21.0 ├── @warp-drive-types/core-types@0.0.0-beta.11 ├── broccoli-asset-rev@3.0.0 ├── concurrently@8.2.2 ├── ember-auto-import@2.7.4 ├── ember-cli-app-version@6.0.1 ├── ember-cli-babel@8.2.0 ├── ember-cli-clean-css@3.0.0 ├── ember-cli-dependency-checker@3.3.2 ├── ember-cli-htmlbars@6.3.0 ├── ember-cli-inject-live-reload@2.1.0 ├── ember-cli-sri@2.1.1 ├── ember-cli-terser@4.0.2 ├── ember-cli@5.10.0 ├── ember-data-types@5.3.8 ├── ember-data@5.3.8 ├── ember-fetch@8.1.2 ├── ember-load-initializers@2.1.2 ├── ember-modifier@4.2.0 ├── ember-page-title@8.2.3 ├── ember-qunit@8.1.0 ├── ember-resolver@11.0.1 ├── ember-source@5.10.1 ├── ember-template-lint@5.13.0 ├── ember-welcome-page@7.0.2 ├── eslint-config-prettier@9.1.0 ├── eslint-import-resolver-custom-alias@1.3.2 ├── eslint-import-resolver-typescript@3.6.1 ├── eslint-plugin-ember@11.12.0 ├── eslint-plugin-import@2.29.1 ├── eslint-plugin-n@16.6.2 ├── eslint-plugin-prettier@5.1.3 ├── eslint-plugin-qunit@8.1.1 ├── eslint@8.57.0 ├── loader.js@4.7.0 ├── prettier@3.3.3 ├── qunit-dom@2.0.0 ├── qunit@2.21.0 ├── stylelint-config-standard@34.0.0 ├── stylelint-prettier@4.1.0 ├── stylelint@15.11.0 ├── tracked-built-ins@3.3.0 ├── typescript@5.5.3 └── webpack@5.93.0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Reproduction
boolean-attr-options-issue
npm install && npm run lint
Description
The type of
options
forattr<BooleanTransform>
isundefined
instead of{ allowNull?: boolean }
.Source file: https://github.com/MathieuCouette/ember-data-issues/blob/ddc8473e5e1ee309d34f8663829f49939d5cdaeb/app/models/user.ts
This is seemingly because
BooleanTransform
fails to extendTypedTransformInstance
.Versions
The text was updated successfully, but these errors were encountered: