quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Update `quasarConfOptions` and generate TS types for it

Open yusufkandemir opened this issue 3 years ago • 0 comments

See this comment: https://github.com/quasarframework/quasar/commit/e3b54bc978514349df512f271d4fd0689ae8fd04#r79469945

We need to update quasarConfOptions to allow non-object types to be assigned. Ripple can take boolean | ..., Dark can take boolean | "auto", but unlike some other top-level types such as props, quasarConfOptions doesn't allow type, making it impossible to document properly ATM. After updating the JSON API system to make this possible, we should also update the JSON API files for the related directives/plugins by adding the possible value types.

After achieving the point above, we can start generating TS types for quasarConfOptions like we are doing with some other top-level properties. Then, we can import these types from the quasar package into app-vite and app-webpack to keep the type definitions in sync.

yusufkandemir avatar Jul 27 '22 14:07 yusufkandemir