Skip to content

Commit

Permalink
Import JSX, whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Mar 1, 2018
1 parent bd4a357 commit 7586b89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/inferno/src/core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ export type SFC<P = {}> = StatelessComponent<P>;
export interface StatelessComponent<P = {}> {
(props: P & { children?: InfernoChildren }, context?: any): VNode<P> | null;

propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: Partial<P>;
displayName?: string;
}
Expand Down
6 changes: 5 additions & 1 deletion packages/inferno/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {};
Expand Down Expand Up @@ -67,5 +70,6 @@ export {
normalizeProps,
options,
render,
version
version,
JSX
};

0 comments on commit 7586b89

Please sign in to comment.