jsx-framework-test-pb 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export declare function jsxDEV(type: string | Function | symbol, props: ElementP
6
6
  columnNumber: number;
7
7
  }, self?: any): DevElement;
8
8
  export declare namespace JSX {
9
- type Element = import('./types').Element;
9
+ type Element = import('./types').ValidElement;
10
10
  interface IntrinsicElements extends JsxIntrinsicElements {
11
11
  }
12
12
  interface ElementChildrenAttribute {
@@ -3,7 +3,7 @@ export declare const Fragment: symbol;
3
3
  export declare function jsx(type: string | Function | symbol, props: ElementProps, key?: string): Element;
4
4
  export declare const jsxs: typeof jsx;
5
5
  export declare namespace JSX {
6
- type Element = import('./types').Element;
6
+ type Element = import('./types').ValidElement;
7
7
  interface IntrinsicElements extends JsxIntrinsicElements {
8
8
  }
9
9
  interface ElementChildrenAttribute {
package/dist/types.d.ts CHANGED
@@ -17,7 +17,8 @@ export interface ElementProps {
17
17
  [key: string]: any;
18
18
  }
19
19
  export type ElementChild = Element | string | number | boolean | null | undefined | (() => any);
20
- export type FC<P = {}> = (props: P) => Element | null;
20
+ export type ValidElement = Element | (() => any) | null;
21
+ export type FC<P = {}> = (props: P) => ValidElement;
21
22
  export interface CSSProperties {
22
23
  [key: string]: string | number;
23
24
  }
@@ -346,7 +347,7 @@ export interface JsxIntrinsicElements {
346
347
  }
347
348
  declare global {
348
349
  namespace JSX {
349
- type Element = import('./types').Element;
350
+ type Element = import('./types').ValidElement;
350
351
  interface IntrinsicElements extends JsxIntrinsicElements {
351
352
  }
352
353
  interface ElementChildrenAttribute {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsx-framework-test-pb",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",