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: General JSX types export for jsx-runtime, fixes TS4.1 compatibility #2811

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 };