From 7586b89c23b4fdc8f26708ab5b19a3787ce3b9ee Mon Sep 17 00:00:00 2001 From: Andrew Sun Date: Mon, 26 Feb 2018 19:29:27 -0500 Subject: [PATCH] Import JSX, whoops --- packages/inferno/src/core/component.ts | 2 -- packages/inferno/src/index.ts | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/inferno/src/core/component.ts b/packages/inferno/src/core/component.ts index a51fb3bb4..813c177a0 100644 --- a/packages/inferno/src/core/component.ts +++ b/packages/inferno/src/core/component.ts @@ -189,8 +189,6 @@ export type SFC

= StatelessComponent

; export interface StatelessComponent

{ (props: P & { children?: InfernoChildren }, context?: any): VNode

| null; - propTypes?: ValidationMap

; - contextTypes?: ValidationMap; defaultProps?: Partial

; displayName?: string; } diff --git a/packages/inferno/src/index.ts b/packages/inferno/src/index.ts index 0abbbbd43..8ec8ebda9 100644 --- a/packages/inferno/src/index.ts +++ b/packages/inferno/src/index.ts @@ -26,6 +26,9 @@ import { import { getNumberStyleValue } from './DOM/props'; import { hydrate } from './DOM/hydration'; +import * as JSX from "./JSX"; + + if (process.env.NODE_ENV !== 'production') { /* tslint:disable-next-line:no-empty */ const testFunc = function testFn() {}; @@ -67,5 +70,6 @@ export { normalizeProps, options, render, - version + version, + JSX };