Skip to content

Commit

Permalink
Merge pull request #2811 from ddprrt/master
Browse files Browse the repository at this point in the history
TypeScript: General JSX types export for jsx-runtime, fixes TS4.1 compatibility
  • Loading branch information
marvinhagemeister authored Nov 2, 2020
2 parents 415a5ca + 9204b0a commit 475815d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions jsx-runtime/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ export function jsx<P>(
props: Attributes & P & { children?: ComponentChild },
key?: string
): VNode<any>;
export namespace jsx {
export import JSX = JSXInternal;
}

export function jsxs(
type: string,
Expand All @@ -36,9 +33,6 @@ export function jsxs<P>(
props: Attributes & P & { children?: ComponentChild[] },
key?: string
): VNode<any>;
export namespace jsxs {
export import JSX = JSXInternal;
}

export function jsxDEV(
type: string,
Expand All @@ -52,6 +46,5 @@ export function jsxDEV<P>(
props: Attributes & P & { children?: ComponentChildren },
key?: string
): VNode<any>;
export namespace jsxDEV {
export import JSX = JSXInternal;
}

export { JSXInternal as JSX };

0 comments on commit 475815d

Please sign in to comment.