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

Typescript: missing type definitions (QuasarLanguage) #17601

Closed
psaintjust opened this issue Oct 28, 2024 · 1 comment
Closed

Typescript: missing type definitions (QuasarLanguage) #17601

psaintjust opened this issue Oct 28, 2024 · 1 comment
Labels

Comments

@psaintjust
Copy link
Contributor

What happened?

Typescript checker error when trying to call "Lang.set()" with a QuasarLanguage object:

Error 1:
Types of property 'label' are incompatible... is missing the following properties from type '..' : expand, collapse

Error 2:
Types of property 'date' are incompatible... Property 'pluralDay' is missing in type.

What did you expect to happen?

No error

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-pe57ba?file=src%2Fboot%2Fi18n.ts

How to reproduce?

  1. Enable typescript support
  2. Import language pack and cast to QuasarLanguage
  3. Call Lang.set([languagePack])

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Plugins (quasar), TypeScript Support

Platforms/Browsers

No response

Quasar info output

Operating System - Darwin(22.6.0) - darwin/x64
NodeJs - 20.16.0

Global packages
  NPM - 10.8.3
  yarn - 1.22.22
  @quasar/cli - 2.4.1
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.16.8 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-webpack - 3.14.2 -- Quasar Framework App CLI with Webpack
  @quasar/extras - 1.16.12 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.4.37 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.4.3
  pinia - Not installed
  vuex - 4.1.0 -- state management for Vue.js
  electron - Not installed
  electron-packager - Not installed
  @electron/packager - Not installed
  electron-builder - Not installed
  @babel/core - 7.25.2 -- Babel compiler core.
  webpack - 5.93.0 -- Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  webpack-dev-server - 4.11.1 -- Serves a webpack app. Updates the browser on changes.
  workbox-webpack-plugin - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  typescript - 4.9.4 -- TypeScript is a language for application scale JavaScript development
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  @quasar/quasar-app-extension-dotenv - 1.1.0 -- Load .env variables into your quasar project
  @quasar/quasar-app-extension-testing-unit-jest - 3.0.3 -- A Quasar App Extension for running Jest tests

Relevant log output

No response

Additional context

No response

@psaintjust
Copy link
Contributor Author

psaintjust commented Oct 28, 2024

Pull request: #17602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant