Skip to content

Commit

Permalink
Fix JSX now namespaced (preact-X)
Browse files Browse the repository at this point in the history
As of preact X, JSX is now namespaced under preact. Updated the typings to reflect this change.
  • Loading branch information
pmkroeker authored Jun 3, 2019
1 parent c266d1f commit 4252714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preact.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ declare module "unistore/preact" {
}

export class Provider<T> extends Preact.Component<ProviderProps<T>> {
render(props: ProviderProps<T>): JSX.Element;
render(props: ProviderProps<T>): Preact.JSX.Element;
}
}

0 comments on commit 4252714

Please sign in to comment.