mobx-preact
mobx-preact copied to clipboard
Typescript typings
Why have the Typescript bindings been omitted from the project as the README says?
Does it still include the typings?
It's not something I have had time to work on or test sufficiently yet. PRs welcome!
Here's my mobx-preact.d.ts
which I include in every project
declare module "mobx-preact" {
import { ComponentConstructor } from "preact"
type Component<P = any> = ComponentConstructor<P>
export function observer<T extends Component>(target: T): T
}