cerebral / overmind

Overmind - Frictionless state management
https://overmindjs.org
MIT License
1.58k stars 95 forks source link

[BUG] VSCode complains about extending interface #472

Closed christianalfoni closed 3 years ago

christianalfoni commented 3 years ago
  1. The extends was there to ensure you created the config correctly, but it is strictly not necessary. If TypeScript has started complaining about this, I believe you can just do:
interface Config {
  state: typeof config.state
  actions: typeof config.actions
}

will check it

christianalfoni commented 3 years ago

If this happens, change to explicit typing. In next release the whole typing system will be reworked.