-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
render react, classic and automatic (#20)
- Loading branch information
Showing
35 changed files
with
2,620 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
|
||
"extends": "./api-extractor-base.json", | ||
"mainEntryPointFilePath": "<projectFolder>/.cache/dts/index.d.ts", | ||
"dtsRollup": { | ||
"enabled": true, | ||
"untrimmedFilePath": "<projectFolder>/index.d.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
|
||
"extends": "./api-extractor-base.json", | ||
"mainEntryPointFilePath": "<projectFolder>/.cache/dts/jsx-dev-runtime.d.ts", | ||
"dtsRollup": { | ||
"enabled": true, | ||
"untrimmedFilePath": "<projectFolder>/jsx-dev-runtime.d.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
|
||
"extends": "./api-extractor-base.json", | ||
"mainEntryPointFilePath": "<projectFolder>/.cache/dts/jsx-runtime.d.ts", | ||
"dtsRollup": { | ||
"enabled": true, | ||
"untrimmedFilePath": "<projectFolder>/jsx-runtime.d.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,113 @@ | ||
import { JSXElementConstructor } from 'react'; | ||
import { ReactElement } from 'react'; | ||
import { ReactNode } from 'react'; | ||
import { XMLBuilder } from 'xmlbuilder2/lib/interfaces'; | ||
import { XMLBuilderCreateOptions } from 'xmlbuilder2/lib/interfaces'; | ||
|
||
export declare function CData(props: { | ||
children: TextChildren; | ||
}): ReactElement<any, string | JSXElementConstructor<any>>; | ||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function CData(props: { children: TextChildren }): null; | ||
|
||
declare function Comment_2(props: { | ||
children: TextChildren; | ||
}): ReactElement<any, string | JSXElementConstructor<any>>; | ||
/** | ||
* | ||
* @public | ||
*/ | ||
declare function Comment_2(props: { children: TextChildren }): null; | ||
export { Comment_2 as Comment }; | ||
|
||
export declare function Fragment(props: { | ||
children?: ReactNode; | ||
}): ReactElement<any, string | JSXElementConstructor<any>>; | ||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function createElement( | ||
type: any, | ||
props: any, | ||
...children: any[] | ||
): JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
export declare function Ins(props: { | ||
target: string; | ||
content?: string; | ||
}): ReactElement<any, string | JSXElementConstructor<any>>; | ||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function Fragment(props: { children?: ReactNode }): ReactNode; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export declare function _getCurrentElement(): XMLBuilder; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function Ins(props: { target: string; content?: string }): null; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
declare function JSXXML( | ||
type: any, | ||
props: any, | ||
...children: any[] | ||
): JsxXmlComponentElement | JsxXmlTagElement; | ||
export { JSXXML }; | ||
export { JSXXML as h }; | ||
|
||
declare const JsxXML: unique symbol; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlComponentElement = { | ||
$$typeof: typeof JsxXML; | ||
builtin: false; | ||
type: (props: any) => JsxXmlElement; | ||
props: any; | ||
}; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlElement = JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlTagElement = { | ||
$$typeof: typeof JsxXML; | ||
builtin: false; | ||
type: string; | ||
attrs: any; | ||
children: any; | ||
}; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function render( | ||
element: any, | ||
element: ReactElement | JsxXmlElement, | ||
options?: XMLBuilderCreateOptions, | ||
): XMLBuilder; | ||
|
||
declare type TextChild = string | number | boolean | null | undefined; | ||
/** | ||
* @public | ||
*/ | ||
export declare type TextChild = string | number | boolean | null | undefined; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export declare type TextChildren = TextChild | TextChildren[]; | ||
|
||
declare type TextChildren = TextChild | TextChildren[]; | ||
/** | ||
* @internal | ||
*/ | ||
export declare function _withElement(cur: XMLBuilder, fn: () => void): void; | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function Fragment(props: { children?: ReactNode }): ReactNode; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function jsxDEV( | ||
type: any, | ||
props: any, | ||
key: any, | ||
isStaticChildren: any, | ||
source: any, | ||
self: any, | ||
): JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
declare const JsxXML: unique symbol; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlComponentElement = { | ||
$$typeof: typeof JsxXML; | ||
builtin: false; | ||
type: (props: any) => JsxXmlElement; | ||
props: any; | ||
}; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlElement = JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlTagElement = { | ||
$$typeof: typeof JsxXML; | ||
builtin: false; | ||
type: string; | ||
attrs: any; | ||
children: any; | ||
}; | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function Fragment(props: { children?: ReactNode }): ReactNode; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function jsx( | ||
type: any, | ||
props: any, | ||
key: any, | ||
): JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare function jsxs( | ||
type: any, | ||
props: any, | ||
key: any, | ||
): JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
declare const JsxXML: unique symbol; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlComponentElement = { | ||
$$typeof: typeof JsxXML; | ||
builtin: false; | ||
type: (props: any) => JsxXmlElement; | ||
props: any; | ||
}; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlElement = JsxXmlComponentElement | JsxXmlTagElement; | ||
|
||
/** | ||
* | ||
* @public | ||
*/ | ||
export declare type JsxXmlTagElement = { | ||
$$typeof: typeof JsxXML; | ||
builtin: false; | ||
type: string; | ||
attrs: any; | ||
children: any; | ||
}; | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.