2018-05-15 07:49:50 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @noImplicitAny: true
|
|
|
|
// @jsx: react
|
|
|
|
// @module: es2015
|
|
|
|
// @moduleResolution: node
|
|
|
|
|
|
|
|
////declare namespace React {
|
|
|
|
//// export class Component { render(): JSX.Element | null; }
|
|
|
|
////}
|
|
|
|
////declare global {
|
|
|
|
//// namespace JSX {
|
|
|
|
//// interface Element {}
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
//// export default function Component([|props |]) {
|
|
|
|
//// if (props.isLoading) {
|
|
|
|
//// return <div>...Loading < /div>;
|
|
|
|
//// }
|
|
|
|
//// else {
|
|
|
|
//// return <AnotherComponent
|
|
|
|
//// update={
|
|
|
|
//// (rec) => {
|
|
|
|
//// return props.update(rec);
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
//// />;
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
|
|
|
|
|
2019-09-06 01:16:35 +02:00
|
|
|
verify.rangeAfterCodeFix("props: { isLoading: any; update: (arg0: any) => any; }",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0);
|