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 typings #10

Open
John0x opened this issue Jan 10, 2018 · 2 comments
Open

Typescript typings #10

John0x opened this issue Jan 10, 2018 · 2 comments

Comments

@John0x
Copy link

John0x commented Jan 10, 2018

Why have the Typescript bindings been omitted from the project as the README says?

Does it still include the typings?

@philmander
Copy link
Collaborator

It's not something I have had time to work on or test sufficiently yet. PRs welcome!

@phaux
Copy link

phaux commented Apr 7, 2019

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
}

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

No branches or pull requests

3 participants