remove tslint:* directive
This commit is contained in:
parent
949770a4fe
commit
9c853f3015
23 changed files with 84 additions and 92 deletions
|
@ -413,7 +413,8 @@ namespace ts {
|
||||||
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
|
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
|
||||||
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
|
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
|
||||||
// But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow.
|
// But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow.
|
||||||
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`
|
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the eslint directive can be all be removed.
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const sourceFile = declarationTransform.transformed[0] as SourceFile;
|
const sourceFile = declarationTransform.transformed[0] as SourceFile;
|
||||||
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
|
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -259,7 +259,7 @@ function test5() {
|
||||||
>render : Symbol(render, Decl(callsOnComplexSignatures.tsx, 73, 18))
|
>render : Symbol(render, Decl(callsOnComplexSignatures.tsx, 73, 18))
|
||||||
>url : Symbol(url, Decl(callsOnComplexSignatures.tsx, 75, 20))
|
>url : Symbol(url, Decl(callsOnComplexSignatures.tsx, 75, 20))
|
||||||
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
||||||
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 216, 49))
|
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 213, 49))
|
||||||
|
|
||||||
const Tag = url ? 'a' : 'button';
|
const Tag = url ? 'a' : 'button';
|
||||||
>Tag : Symbol(Tag, Decl(callsOnComplexSignatures.tsx, 76, 13))
|
>Tag : Symbol(Tag, Decl(callsOnComplexSignatures.tsx, 76, 13))
|
||||||
|
@ -276,12 +276,12 @@ function test5() {
|
||||||
>props : Symbol(props, Decl(callsOnComplexSignatures.tsx, 81, 17))
|
>props : Symbol(props, Decl(callsOnComplexSignatures.tsx, 81, 17))
|
||||||
>component : Symbol(component, Decl(callsOnComplexSignatures.tsx, 81, 25))
|
>component : Symbol(component, Decl(callsOnComplexSignatures.tsx, 81, 25))
|
||||||
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
||||||
>ReactType : Symbol(React.ReactType, Decl(react16.d.ts, 112, 21))
|
>ReactType : Symbol(React.ReactType, Decl(react16.d.ts, 111, 21))
|
||||||
|
|
||||||
const Comp: React.ReactType = props.component;
|
const Comp: React.ReactType = props.component;
|
||||||
>Comp : Symbol(Comp, Decl(callsOnComplexSignatures.tsx, 82, 13))
|
>Comp : Symbol(Comp, Decl(callsOnComplexSignatures.tsx, 82, 13))
|
||||||
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
||||||
>ReactType : Symbol(React.ReactType, Decl(react16.d.ts, 112, 21))
|
>ReactType : Symbol(React.ReactType, Decl(react16.d.ts, 111, 21))
|
||||||
>props.component : Symbol(component, Decl(callsOnComplexSignatures.tsx, 81, 25))
|
>props.component : Symbol(component, Decl(callsOnComplexSignatures.tsx, 81, 25))
|
||||||
>props : Symbol(props, Decl(callsOnComplexSignatures.tsx, 81, 17))
|
>props : Symbol(props, Decl(callsOnComplexSignatures.tsx, 81, 17))
|
||||||
>component : Symbol(component, Decl(callsOnComplexSignatures.tsx, 81, 25))
|
>component : Symbol(component, Decl(callsOnComplexSignatures.tsx, 81, 25))
|
||||||
|
@ -319,10 +319,10 @@ function test5() {
|
||||||
var C: React.ComponentType<P1> | React.ComponentType<P2> = null as any;
|
var C: React.ComponentType<P1> | React.ComponentType<P2> = null as any;
|
||||||
>C : Symbol(C, Decl(callsOnComplexSignatures.tsx, 98, 11))
|
>C : Symbol(C, Decl(callsOnComplexSignatures.tsx, 98, 11))
|
||||||
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
||||||
>ComponentType : Symbol(React.ComponentType, Decl(react16.d.ts, 117, 60))
|
>ComponentType : Symbol(React.ComponentType, Decl(react16.d.ts, 116, 60))
|
||||||
>P1 : Symbol(P1, Decl(callsOnComplexSignatures.tsx, 87, 24))
|
>P1 : Symbol(P1, Decl(callsOnComplexSignatures.tsx, 87, 24))
|
||||||
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
>React : Symbol(React, Decl(callsOnComplexSignatures.tsx, 1, 6))
|
||||||
>ComponentType : Symbol(React.ComponentType, Decl(react16.d.ts, 117, 60))
|
>ComponentType : Symbol(React.ComponentType, Decl(react16.d.ts, 116, 60))
|
||||||
>P2 : Symbol(P2, Decl(callsOnComplexSignatures.tsx, 91, 9))
|
>P2 : Symbol(P2, Decl(callsOnComplexSignatures.tsx, 91, 9))
|
||||||
|
|
||||||
const a = <C p={true} />;
|
const a = <C p={true} />;
|
||||||
|
|
|
@ -10,16 +10,16 @@ interface ResizablePanelProps {
|
||||||
children: [React.ReactNode, React.ReactNode]
|
children: [React.ReactNode, React.ReactNode]
|
||||||
>children : Symbol(ResizablePanelProps.children, Decl(checkJsxChildrenCanBeTupleType.tsx, 4, 31))
|
>children : Symbol(ResizablePanelProps.children, Decl(checkJsxChildrenCanBeTupleType.tsx, 4, 31))
|
||||||
>React : Symbol(React, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 6))
|
>React : Symbol(React, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 6))
|
||||||
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 216, 49))
|
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 213, 49))
|
||||||
>React : Symbol(React, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 6))
|
>React : Symbol(React, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 6))
|
||||||
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 216, 49))
|
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 213, 49))
|
||||||
}
|
}
|
||||||
|
|
||||||
class ResizablePanel extends React.Component<
|
class ResizablePanel extends React.Component<
|
||||||
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 6))
|
>React : Symbol(React, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
|
|
||||||
ResizablePanelProps, any> {}
|
ResizablePanelProps, any> {}
|
||||||
>ResizablePanelProps : Symbol(ResizablePanelProps, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 25))
|
>ResizablePanelProps : Symbol(ResizablePanelProps, Decl(checkJsxChildrenCanBeTupleType.tsx, 2, 25))
|
||||||
|
@ -29,10 +29,10 @@ const test = <ResizablePanel>
|
||||||
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
</ResizablePanel>
|
</ResizablePanel>
|
||||||
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
||||||
|
@ -42,13 +42,13 @@ const testErr = <ResizablePanel>
|
||||||
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
</ResizablePanel>
|
</ResizablePanel>
|
||||||
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
>ResizablePanel : Symbol(ResizablePanel, Decl(checkJsxChildrenCanBeTupleType.tsx, 6, 1))
|
||||||
|
|
|
@ -27,9 +27,9 @@ interface AsyncLoaderProps<TResult> {
|
||||||
class AsyncLoader<TResult> extends React.Component<AsyncLoaderProps<TResult>> {
|
class AsyncLoader<TResult> extends React.Component<AsyncLoaderProps<TResult>> {
|
||||||
>AsyncLoader : Symbol(AsyncLoader, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 9, 1))
|
>AsyncLoader : Symbol(AsyncLoader, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 9, 1))
|
||||||
>TResult : Symbol(TResult, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 11, 18))
|
>TResult : Symbol(TResult, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 11, 18))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 1, 6))
|
>React : Symbol(React, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 1, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>AsyncLoaderProps : Symbol(AsyncLoaderProps, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 3, 37))
|
>AsyncLoaderProps : Symbol(AsyncLoaderProps, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 3, 37))
|
||||||
>TResult : Symbol(TResult, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 11, 18))
|
>TResult : Symbol(TResult, Decl(checkJsxSubtleSkipContextSensitiveBug.tsx, 11, 18))
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,8 @@ export function ComponentWithUnion(props: PM | PS) {
|
||||||
>PS : Symbol(PS, Decl(checkJsxUnionSFXContextualTypeInferredCorrectly.tsx, 2, 26))
|
>PS : Symbol(PS, Decl(checkJsxUnionSFXContextualTypeInferredCorrectly.tsx, 2, 26))
|
||||||
|
|
||||||
return <h1></h1>;
|
return <h1></h1>;
|
||||||
>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2430, 106))
|
>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2421, 106))
|
||||||
>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2430, 106))
|
>h1 : Symbol(JSX.IntrinsicElements.h1, Decl(react16.d.ts, 2421, 106))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Usage with React tsx
|
// Usage with React tsx
|
||||||
|
|
|
@ -8,11 +8,11 @@ export function consoleTestResultHandler(testResult: any): boolean {
|
||||||
for (const q of a) {
|
for (const q of a) {
|
||||||
void a;
|
void a;
|
||||||
|
|
||||||
/* tslint:disable:no-console */
|
/* eslint-disable no-console */
|
||||||
if (a) {
|
if (a) {
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
/* tslint:enable:no-console */
|
/* eslint-enable no-console */
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -27,12 +27,12 @@ function consoleTestResultHandler(testResult) {
|
||||||
for (var _i = 0, a_1 = a; _i < a_1.length; _i++) {
|
for (var _i = 0, a_1 = a; _i < a_1.length; _i++) {
|
||||||
var q = a_1[_i];
|
var q = a_1[_i];
|
||||||
void a;
|
void a;
|
||||||
/* tslint:disable:no-console */
|
/* eslint-disable no-console */
|
||||||
if (a) {
|
if (a) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
}
|
}
|
||||||
/* tslint:enable:no-console */
|
/* eslint-enable no-console */
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,13 +17,13 @@ export function consoleTestResultHandler(testResult: any): boolean {
|
||||||
void a;
|
void a;
|
||||||
>a : Symbol(a, Decl(forLoopEndingMultilineComments.ts, 0, 11))
|
>a : Symbol(a, Decl(forLoopEndingMultilineComments.ts, 0, 11))
|
||||||
|
|
||||||
/* tslint:disable:no-console */
|
/* eslint-disable no-console */
|
||||||
if (a) {
|
if (a) {
|
||||||
>a : Symbol(a, Decl(forLoopEndingMultilineComments.ts, 0, 11))
|
>a : Symbol(a, Decl(forLoopEndingMultilineComments.ts, 0, 11))
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
/* tslint:enable:no-console */
|
/* eslint-enable no-console */
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -19,13 +19,13 @@ export function consoleTestResultHandler(testResult: any): boolean {
|
||||||
>void a : undefined
|
>void a : undefined
|
||||||
>a : any
|
>a : any
|
||||||
|
|
||||||
/* tslint:disable:no-console */
|
/* eslint-disable no-console */
|
||||||
if (a) {
|
if (a) {
|
||||||
>a : any
|
>a : any
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
/* tslint:enable:no-console */
|
/* eslint-enable no-console */
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import * as React from 'react'
|
||||||
type Tab = [string, React.ReactNode] // [tabName, tabContent]
|
type Tab = [string, React.ReactNode] // [tabName, tabContent]
|
||||||
>Tab : Symbol(Tab, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 2, 30))
|
>Tab : Symbol(Tab, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 2, 30))
|
||||||
>React : Symbol(React, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 2, 6))
|
>React : Symbol(React, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 2, 6))
|
||||||
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 216, 49))
|
>ReactNode : Symbol(React.ReactNode, Decl(react16.d.ts, 213, 49))
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
>Props : Symbol(Props, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 4, 36))
|
>Props : Symbol(Props, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 4, 36))
|
||||||
|
@ -23,14 +23,14 @@ function TabLayout(props: Props) {
|
||||||
>Props : Symbol(Props, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 4, 36))
|
>Props : Symbol(Props, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 4, 36))
|
||||||
|
|
||||||
return <div/>
|
return <div/>
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
}
|
}
|
||||||
|
|
||||||
export class App extends React.Component<{}> {
|
export class App extends React.Component<{}> {
|
||||||
>App : Symbol(App, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 12, 1))
|
>App : Symbol(App, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 12, 1))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 2, 6))
|
>React : Symbol(React, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
>render : Symbol(App.render, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 14, 46))
|
>render : Symbol(App.render, Decl(jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.tsx, 14, 46))
|
||||||
|
@ -40,10 +40,10 @@ export class App extends React.Component<{}> {
|
||||||
|
|
||||||
{[
|
{[
|
||||||
['Users', <div/>],
|
['Users', <div/>],
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
['Products', <div/>]
|
['Products', <div/>]
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
]}
|
]}
|
||||||
</TabLayout>
|
</TabLayout>
|
||||||
|
|
|
@ -7,6 +7,6 @@ import "./App.css"; // doesn't actually exist
|
||||||
|
|
||||||
const tag = <div></div>;
|
const tag = <div></div>;
|
||||||
>tag : Symbol(tag, Decl(jsxImportForSideEffectsNonExtantNoError.tsx, 5, 5))
|
>tag : Symbol(tag, Decl(jsxImportForSideEffectsNonExtantNoError.tsx, 5, 5))
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,9 @@ class FieldFeedback<P extends Props = BaseProps> extends React.Component<P> {
|
||||||
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 12, 20))
|
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 12, 20))
|
||||||
>Props : Symbol(Props, Decl(reactDefaultPropsInferenceSuccess.tsx, 7, 1))
|
>Props : Symbol(Props, Decl(reactDefaultPropsInferenceSuccess.tsx, 7, 1))
|
||||||
>BaseProps : Symbol(BaseProps, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 26))
|
>BaseProps : Symbol(BaseProps, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 26))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 12, 20))
|
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 12, 20))
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
@ -42,8 +42,8 @@ class FieldFeedback<P extends Props = BaseProps> extends React.Component<P> {
|
||||||
>render : Symbol(FieldFeedback.render, Decl(reactDefaultPropsInferenceSuccess.tsx, 15, 4))
|
>render : Symbol(FieldFeedback.render, Decl(reactDefaultPropsInferenceSuccess.tsx, 15, 4))
|
||||||
|
|
||||||
return <div>Hello</div>;
|
return <div>Hello</div>;
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ class FieldFeedbackBeta<P extends Props = BaseProps> extends React.Component<P>
|
||||||
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 28, 24))
|
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 28, 24))
|
||||||
>Props : Symbol(Props, Decl(reactDefaultPropsInferenceSuccess.tsx, 7, 1))
|
>Props : Symbol(Props, Decl(reactDefaultPropsInferenceSuccess.tsx, 7, 1))
|
||||||
>BaseProps : Symbol(BaseProps, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 26))
|
>BaseProps : Symbol(BaseProps, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 26))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactDefaultPropsInferenceSuccess.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 28, 24))
|
>P : Symbol(P, Decl(reactDefaultPropsInferenceSuccess.tsx, 28, 24))
|
||||||
|
|
||||||
static defaultProps: BaseProps = {
|
static defaultProps: BaseProps = {
|
||||||
|
@ -89,8 +89,8 @@ class FieldFeedbackBeta<P extends Props = BaseProps> extends React.Component<P>
|
||||||
>render : Symbol(FieldFeedbackBeta.render, Decl(reactDefaultPropsInferenceSuccess.tsx, 31, 4))
|
>render : Symbol(FieldFeedbackBeta.render, Decl(reactDefaultPropsInferenceSuccess.tsx, 31, 4))
|
||||||
|
|
||||||
return <div>Hello</div>;
|
return <div>Hello</div>;
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,14 +147,14 @@ class FieldFeedback2<P extends MyPropsProps = MyPropsProps> extends FieldFeedbac
|
||||||
|
|
||||||
this.props.when("now"); // OK, always defined
|
this.props.when("now"); // OK, always defined
|
||||||
>this.props.when : Symbol(when, Decl(reactDefaultPropsInferenceSuccess.tsx, 44, 38))
|
>this.props.when : Symbol(when, Decl(reactDefaultPropsInferenceSuccess.tsx, 44, 38))
|
||||||
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>this : Symbol(FieldFeedback2, Decl(reactDefaultPropsInferenceSuccess.tsx, 46, 1))
|
>this : Symbol(FieldFeedback2, Decl(reactDefaultPropsInferenceSuccess.tsx, 46, 1))
|
||||||
>props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>when : Symbol(when, Decl(reactDefaultPropsInferenceSuccess.tsx, 44, 38))
|
>when : Symbol(when, Decl(reactDefaultPropsInferenceSuccess.tsx, 44, 38))
|
||||||
|
|
||||||
return <div>Hello</div>;
|
return <div>Hello</div>;
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,17 +8,17 @@ function f<P>(App: React.ComponentClass<P> | React.StatelessComponent<P>): void
|
||||||
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
||||||
>App : Symbol(App, Decl(reactHOCSpreadprops.tsx, 2, 14))
|
>App : Symbol(App, Decl(reactHOCSpreadprops.tsx, 2, 14))
|
||||||
>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0))
|
>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0))
|
||||||
>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 421, 9))
|
>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 417, 9))
|
||||||
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
||||||
>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0))
|
>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0))
|
||||||
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react16.d.ts, 406, 49))
|
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react16.d.ts, 402, 49))
|
||||||
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
||||||
|
|
||||||
class C extends React.Component<P & { x: number }> {
|
class C extends React.Component<P & { x: number }> {
|
||||||
>C : Symbol(C, Decl(reactHOCSpreadprops.tsx, 2, 81))
|
>C : Symbol(C, Decl(reactHOCSpreadprops.tsx, 2, 81))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0))
|
>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11))
|
||||||
>x : Symbol(x, Decl(reactHOCSpreadprops.tsx, 3, 41))
|
>x : Symbol(x, Decl(reactHOCSpreadprops.tsx, 3, 41))
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ function f<P>(App: React.ComponentClass<P> | React.StatelessComponent<P>): void
|
||||||
|
|
||||||
return <App {...this.props} />;
|
return <App {...this.props} />;
|
||||||
>App : Symbol(App, Decl(reactHOCSpreadprops.tsx, 2, 14))
|
>App : Symbol(App, Decl(reactHOCSpreadprops.tsx, 2, 14))
|
||||||
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>this : Symbol(C, Decl(reactHOCSpreadprops.tsx, 2, 81))
|
>this : Symbol(C, Decl(reactHOCSpreadprops.tsx, 2, 81))
|
||||||
>props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,18 @@ function myHigherOrderComponent<P>(Inner: React.ComponentClass<P & {name: string
|
||||||
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
||||||
>Inner : Symbol(Inner, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 35))
|
>Inner : Symbol(Inner, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 35))
|
||||||
>React : Symbol(React, Decl(reactReadonlyHOCAssignabilityReal.tsx, 1, 6))
|
>React : Symbol(React, Decl(reactReadonlyHOCAssignabilityReal.tsx, 1, 6))
|
||||||
>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 421, 9))
|
>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 417, 9))
|
||||||
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
||||||
>name : Symbol(name, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 68))
|
>name : Symbol(name, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 68))
|
||||||
>React : Symbol(React, Decl(reactReadonlyHOCAssignabilityReal.tsx, 1, 6))
|
>React : Symbol(React, Decl(reactReadonlyHOCAssignabilityReal.tsx, 1, 6))
|
||||||
>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 421, 9))
|
>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 417, 9))
|
||||||
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
||||||
|
|
||||||
return class OuterComponent extends React.Component<P> {
|
return class OuterComponent extends React.Component<P> {
|
||||||
>OuterComponent : Symbol(OuterComponent, Decl(reactReadonlyHOCAssignabilityReal.tsx, 4, 10))
|
>OuterComponent : Symbol(OuterComponent, Decl(reactReadonlyHOCAssignabilityReal.tsx, 4, 10))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(reactReadonlyHOCAssignabilityReal.tsx, 1, 6))
|
>React : Symbol(React, Decl(reactReadonlyHOCAssignabilityReal.tsx, 1, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
>P : Symbol(P, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 32))
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -27,9 +27,9 @@ function myHigherOrderComponent<P>(Inner: React.ComponentClass<P & {name: string
|
||||||
|
|
||||||
return <Inner {...this.props} name="Matt"/>;
|
return <Inner {...this.props} name="Matt"/>;
|
||||||
>Inner : Symbol(Inner, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 35))
|
>Inner : Symbol(Inner, Decl(reactReadonlyHOCAssignabilityReal.tsx, 3, 35))
|
||||||
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>this : Symbol(OuterComponent, Decl(reactReadonlyHOCAssignabilityReal.tsx, 4, 10))
|
>this : Symbol(OuterComponent, Decl(reactReadonlyHOCAssignabilityReal.tsx, 4, 10))
|
||||||
>props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>name : Symbol(name, Decl(reactReadonlyHOCAssignabilityReal.tsx, 6, 41))
|
>name : Symbol(name, Decl(reactReadonlyHOCAssignabilityReal.tsx, 6, 41))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,17 +8,17 @@ declare const Radio: (props: {}) => React.ReactElement<{}>;
|
||||||
>Radio : Symbol(Radio, Decl(reactSFCAndFunctionResolvable.tsx, 4, 13))
|
>Radio : Symbol(Radio, Decl(reactSFCAndFunctionResolvable.tsx, 4, 13))
|
||||||
>props : Symbol(props, Decl(reactSFCAndFunctionResolvable.tsx, 4, 22))
|
>props : Symbol(props, Decl(reactSFCAndFunctionResolvable.tsx, 4, 22))
|
||||||
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
||||||
>ReactElement : Symbol(React.ReactElement, Decl(react16.d.ts, 135, 9))
|
>ReactElement : Symbol(React.ReactElement, Decl(react16.d.ts, 134, 9))
|
||||||
|
|
||||||
declare const OtherRadio: () => React.ReactElement<{}>;
|
declare const OtherRadio: () => React.ReactElement<{}>;
|
||||||
>OtherRadio : Symbol(OtherRadio, Decl(reactSFCAndFunctionResolvable.tsx, 5, 13))
|
>OtherRadio : Symbol(OtherRadio, Decl(reactSFCAndFunctionResolvable.tsx, 5, 13))
|
||||||
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
||||||
>ReactElement : Symbol(React.ReactElement, Decl(react16.d.ts, 135, 9))
|
>ReactElement : Symbol(React.ReactElement, Decl(react16.d.ts, 134, 9))
|
||||||
|
|
||||||
declare const Checkbox: React.SFC;
|
declare const Checkbox: React.SFC;
|
||||||
>Checkbox : Symbol(Checkbox, Decl(reactSFCAndFunctionResolvable.tsx, 6, 13))
|
>Checkbox : Symbol(Checkbox, Decl(reactSFCAndFunctionResolvable.tsx, 6, 13))
|
||||||
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
||||||
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 400, 9))
|
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 396, 9))
|
||||||
|
|
||||||
declare const condition1: boolean;
|
declare const condition1: boolean;
|
||||||
>condition1 : Symbol(condition1, Decl(reactSFCAndFunctionResolvable.tsx, 8, 13))
|
>condition1 : Symbol(condition1, Decl(reactSFCAndFunctionResolvable.tsx, 8, 13))
|
||||||
|
@ -32,7 +32,7 @@ declare const condition3: boolean;
|
||||||
const RandomComponent: React.SFC = () => {
|
const RandomComponent: React.SFC = () => {
|
||||||
>RandomComponent : Symbol(RandomComponent, Decl(reactSFCAndFunctionResolvable.tsx, 12, 5))
|
>RandomComponent : Symbol(RandomComponent, Decl(reactSFCAndFunctionResolvable.tsx, 12, 5))
|
||||||
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
|
||||||
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 400, 9))
|
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 396, 9))
|
||||||
|
|
||||||
const Component =
|
const Component =
|
||||||
>Component : Symbol(Component, Decl(reactSFCAndFunctionResolvable.tsx, 13, 7))
|
>Component : Symbol(Component, Decl(reactSFCAndFunctionResolvable.tsx, 13, 7))
|
||||||
|
|
|
@ -7,7 +7,7 @@ import * as React from "react";
|
||||||
declare const Tag: keyof React.ReactHTML;
|
declare const Tag: keyof React.ReactHTML;
|
||||||
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 3, 13))
|
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 3, 13))
|
||||||
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 2, 6))
|
||||||
>ReactHTML : Symbol(React.ReactHTML, Decl(react16.d.ts, 2089, 9))
|
>ReactHTML : Symbol(React.ReactHTML, Decl(react16.d.ts, 2083, 9))
|
||||||
|
|
||||||
const classes = "";
|
const classes = "";
|
||||||
>classes : Symbol(classes, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 5, 5))
|
>classes : Symbol(classes, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 5, 5))
|
||||||
|
|
|
@ -7,7 +7,7 @@ import * as React from "react";
|
||||||
declare const Tag: keyof React.ReactHTML;
|
declare const Tag: keyof React.ReactHTML;
|
||||||
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 3, 13))
|
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 3, 13))
|
||||||
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 2, 6))
|
||||||
>ReactHTML : Symbol(React.ReactHTML, Decl(react16.d.ts, 2089, 9))
|
>ReactHTML : Symbol(React.ReactHTML, Decl(react16.d.ts, 2083, 9))
|
||||||
|
|
||||||
const classes = "";
|
const classes = "";
|
||||||
>classes : Symbol(classes, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 5, 5))
|
>classes : Symbol(classes, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 5, 5))
|
||||||
|
@ -15,7 +15,7 @@ const classes = "";
|
||||||
const rest: React.HTMLAttributes<HTMLElement> = {};
|
const rest: React.HTMLAttributes<HTMLElement> = {};
|
||||||
>rest : Symbol(rest, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 6, 5))
|
>rest : Symbol(rest, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 6, 5))
|
||||||
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 2, 6))
|
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM2.tsx, 2, 6))
|
||||||
>HTMLAttributes : Symbol(React.HTMLAttributes, Decl(react16.d.ts, 1048, 9), Decl(react16.d.ts, 1105, 9))
|
>HTMLAttributes : Symbol(React.HTMLAttributes, Decl(react16.d.ts, 1043, 9), Decl(react16.d.ts, 1100, 9))
|
||||||
>HTMLElement : Symbol(HTMLElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
|
>HTMLElement : Symbol(HTMLElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
|
||||||
|
|
||||||
const children: any[] = [];
|
const children: any[] = [];
|
||||||
|
|
|
@ -5,9 +5,9 @@ import * as React from "react";
|
||||||
|
|
||||||
class TestComponent extends React.Component<{ isAny: <T>(obj: any) => obj is T }> {
|
class TestComponent extends React.Component<{ isAny: <T>(obj: any) => obj is T }> {
|
||||||
>TestComponent : Symbol(TestComponent, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 1, 31))
|
>TestComponent : Symbol(TestComponent, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 1, 31))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 1, 6))
|
>React : Symbol(React, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 1, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>isAny : Symbol(isAny, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 2, 45))
|
>isAny : Symbol(isAny, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 2, 45))
|
||||||
>T : Symbol(T, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 2, 54))
|
>T : Symbol(T, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 2, 54))
|
||||||
>obj : Symbol(obj, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 2, 57))
|
>obj : Symbol(obj, Decl(returnTypePredicateIsInstantiateInContextOfTarget.tsx, 2, 57))
|
||||||
|
|
|
@ -19,9 +19,9 @@ function test<P>(wrappedProps: P) {
|
||||||
};
|
};
|
||||||
class MyComponent extends React.Component<P> {
|
class MyComponent extends React.Component<P> {
|
||||||
>MyComponent : Symbol(MyComponent, Decl(tsxNotUsingApparentTypeOfSFC.tsx, 7, 6))
|
>MyComponent : Symbol(MyComponent, Decl(tsxNotUsingApparentTypeOfSFC.tsx, 7, 6))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(tsxNotUsingApparentTypeOfSFC.tsx, 2, 6))
|
>React : Symbol(React, Decl(tsxNotUsingApparentTypeOfSFC.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>P : Symbol(P, Decl(tsxNotUsingApparentTypeOfSFC.tsx, 4, 14))
|
>P : Symbol(P, Decl(tsxNotUsingApparentTypeOfSFC.tsx, 4, 14))
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -8,7 +8,7 @@ export type ButtonProps<T = {}> = React.ButtonHTMLAttributes<HTMLButtonElement>
|
||||||
>ButtonProps : Symbol(ButtonProps, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 26))
|
>ButtonProps : Symbol(ButtonProps, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 26))
|
||||||
>T : Symbol(T, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 4, 24))
|
>T : Symbol(T, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 4, 24))
|
||||||
>React : Symbol(React, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 6))
|
>React : Symbol(React, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 6))
|
||||||
>ButtonHTMLAttributes : Symbol(React.ButtonHTMLAttributes, Decl(react16.d.ts, 1437, 9))
|
>ButtonHTMLAttributes : Symbol(React.ButtonHTMLAttributes, Decl(react16.d.ts, 1431, 9))
|
||||||
>HTMLButtonElement : Symbol(HTMLButtonElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
|
>HTMLButtonElement : Symbol(HTMLButtonElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
|
||||||
|
|
||||||
outline?: boolean;
|
outline?: boolean;
|
||||||
|
@ -20,9 +20,9 @@ export type ButtonProps<T = {}> = React.ButtonHTMLAttributes<HTMLButtonElement>
|
||||||
declare class Button<T = {}> extends React.Component<ButtonProps<T>> { }
|
declare class Button<T = {}> extends React.Component<ButtonProps<T>> { }
|
||||||
>Button : Symbol(Button, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 6, 6))
|
>Button : Symbol(Button, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 6, 6))
|
||||||
>T : Symbol(T, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 8, 21))
|
>T : Symbol(T, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 8, 21))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 6))
|
>React : Symbol(React, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>ButtonProps : Symbol(ButtonProps, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 26))
|
>ButtonProps : Symbol(ButtonProps, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 26))
|
||||||
>T : Symbol(T, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 8, 21))
|
>T : Symbol(T, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 8, 21))
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ interface CustomButtonProps extends ButtonProps {
|
||||||
const CustomButton: React.SFC<CustomButtonProps> = props => <Button {...props} />;
|
const CustomButton: React.SFC<CustomButtonProps> = props => <Button {...props} />;
|
||||||
>CustomButton : Symbol(CustomButton, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 14, 5))
|
>CustomButton : Symbol(CustomButton, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 14, 5))
|
||||||
>React : Symbol(React, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 6))
|
>React : Symbol(React, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 2, 6))
|
||||||
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 400, 9))
|
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 396, 9))
|
||||||
>CustomButtonProps : Symbol(CustomButtonProps, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 8, 72))
|
>CustomButtonProps : Symbol(CustomButtonProps, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 8, 72))
|
||||||
>props : Symbol(props, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 14, 50))
|
>props : Symbol(props, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 14, 50))
|
||||||
>Button : Symbol(Button, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 6, 6))
|
>Button : Symbol(Button, Decl(tsxReactPropsInferenceSucceedsOnIntersections.tsx, 6, 6))
|
||||||
|
|
|
@ -6,9 +6,9 @@ import React from "react";
|
||||||
|
|
||||||
class MyComponent extends React.Component<{dataSource: number[], onClick?: any}, {}> {
|
class MyComponent extends React.Component<{dataSource: number[], onClick?: any}, {}> {
|
||||||
>MyComponent : Symbol(MyComponent, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 2, 26))
|
>MyComponent : Symbol(MyComponent, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 2, 26))
|
||||||
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>React : Symbol(React, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 2, 6))
|
>React : Symbol(React, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 2, 6))
|
||||||
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
|
>Component : Symbol(React.Component, Decl(react16.d.ts, 342, 54), Decl(react16.d.ts, 345, 94))
|
||||||
>dataSource : Symbol(dataSource, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 43))
|
>dataSource : Symbol(dataSource, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 43))
|
||||||
>onClick : Symbol(onClick, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 64))
|
>onClick : Symbol(onClick, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 64))
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@ class MyComponent extends React.Component<{dataSource: number[], onClick?: any},
|
||||||
>render : Symbol(MyComponent.render, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 86))
|
>render : Symbol(MyComponent.render, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 86))
|
||||||
|
|
||||||
return (<div {...this.props} className="ok"></div>);
|
return (<div {...this.props} className="ok"></div>);
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>this : Symbol(MyComponent, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 2, 26))
|
>this : Symbol(MyComponent, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 2, 26))
|
||||||
>props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32))
|
>props : Symbol(React.Component.props, Decl(react16.d.ts, 363, 32))
|
||||||
>className : Symbol(className, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 6, 36))
|
>className : Symbol(className, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 6, 36))
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ function BackButton(_props: Props) {
|
||||||
>Props : Symbol(Props, Decl(tsxStatelessComponentDefaultProps.tsx, 2, 26))
|
>Props : Symbol(Props, Decl(tsxStatelessComponentDefaultProps.tsx, 2, 26))
|
||||||
|
|
||||||
return <div />
|
return <div />
|
||||||
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2420, 114))
|
>div : Symbol(JSX.IntrinsicElements.div, Decl(react16.d.ts, 2411, 114))
|
||||||
}
|
}
|
||||||
BackButton.defaultProps = {
|
BackButton.defaultProps = {
|
||||||
>BackButton.defaultProps : Symbol(BackButton.defaultProps, Decl(tsxStatelessComponentDefaultProps.tsx, 9, 1))
|
>BackButton.defaultProps : Symbol(BackButton.defaultProps, Decl(tsxStatelessComponentDefaultProps.tsx, 9, 1))
|
||||||
|
|
|
@ -7,11 +7,11 @@ export function consoleTestResultHandler(testResult: any): boolean {
|
||||||
for (const q of a) {
|
for (const q of a) {
|
||||||
void a;
|
void a;
|
||||||
|
|
||||||
/* tslint:disable:no-console */
|
/* eslint-disable no-console */
|
||||||
if (a) {
|
if (a) {
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
/* tslint:enable:no-console */
|
/* eslint-enable no-console */
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
9
tests/lib/react16.d.ts
vendored
9
tests/lib/react16.d.ts
vendored
|
@ -107,7 +107,6 @@ declare module "react" {
|
||||||
type NativeUIEvent = UIEvent;
|
type NativeUIEvent = UIEvent;
|
||||||
type NativeWheelEvent = WheelEvent;
|
type NativeWheelEvent = WheelEvent;
|
||||||
|
|
||||||
// tslint:disable-next-line:export-just-namespace
|
|
||||||
export = React;
|
export = React;
|
||||||
|
|
||||||
namespace React {
|
namespace React {
|
||||||
|
@ -160,7 +159,6 @@ declare module "react" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReactHTML for ReactHTMLElement
|
// ReactHTML for ReactHTMLElement
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface ReactHTMLElement<T extends HTMLElement> extends DetailedReactHTMLElement<AllHTMLAttributes<T>, T> { }
|
interface ReactHTMLElement<T extends HTMLElement> extends DetailedReactHTMLElement<AllHTMLAttributes<T>, T> { }
|
||||||
|
|
||||||
interface DetailedReactHTMLElement<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMElement<P, T> {
|
interface DetailedReactHTMLElement<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMElement<P, T> {
|
||||||
|
@ -194,7 +192,6 @@ declare module "react" {
|
||||||
type DOMFactory<P extends DOMAttributes<T>, T extends Element> =
|
type DOMFactory<P extends DOMAttributes<T>, T extends Element> =
|
||||||
(props?: ClassAttributes<T> & P | null, ...children: ReactNode[]) => DOMElement<P, T>;
|
(props?: ClassAttributes<T> & P | null, ...children: ReactNode[]) => DOMElement<P, T>;
|
||||||
|
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface HTMLFactory<T extends HTMLElement> extends DetailedHTMLFactory<AllHTMLAttributes<T>, T> { }
|
interface HTMLFactory<T extends HTMLElement> extends DetailedHTMLFactory<AllHTMLAttributes<T>, T> { }
|
||||||
|
|
||||||
interface DetailedHTMLFactory<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMFactory<P, T> {
|
interface DetailedHTMLFactory<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMFactory<P, T> {
|
||||||
|
@ -346,7 +343,6 @@ declare module "react" {
|
||||||
type ReactInstance = Component<any> | Element;
|
type ReactInstance = Component<any> | Element;
|
||||||
|
|
||||||
// Base component for plain JS classes
|
// Base component for plain JS classes
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface Component<P = {}, S = {}, SS = any> extends ComponentLifecycle<P, S, SS> { }
|
interface Component<P = {}, S = {}, SS = any> extends ComponentLifecycle<P, S, SS> { }
|
||||||
class Component<P, S> {
|
class Component<P, S> {
|
||||||
constructor(props: Readonly<P>);
|
constructor(props: Readonly<P>);
|
||||||
|
@ -691,7 +687,6 @@ declare module "react" {
|
||||||
target: EventTarget & T;
|
target: EventTarget & T;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface FormEvent<T = Element> extends SyntheticEvent<T> {
|
interface FormEvent<T = Element> extends SyntheticEvent<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1413,7 +1408,6 @@ declare module "react" {
|
||||||
type?: string;
|
type?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> { }
|
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> { }
|
||||||
|
|
||||||
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
||||||
|
@ -2367,7 +2361,6 @@ declare module "react" {
|
||||||
|
|
||||||
global {
|
global {
|
||||||
namespace JSX {
|
namespace JSX {
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface Element extends React.ReactElement<any> { }
|
interface Element extends React.ReactElement<any> { }
|
||||||
interface ElementClass extends React.Component<any> {
|
interface ElementClass extends React.Component<any> {
|
||||||
render(): React.ReactNode;
|
render(): React.ReactNode;
|
||||||
|
@ -2383,9 +2376,7 @@ declare module "react" {
|
||||||
? Defaultize<P, D>
|
? Defaultize<P, D>
|
||||||
: P;
|
: P;
|
||||||
|
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface IntrinsicAttributes extends React.Attributes { }
|
interface IntrinsicAttributes extends React.Attributes { }
|
||||||
// tslint:disable-next-line:no-empty-interface
|
|
||||||
interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
|
interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
|
||||||
|
|
||||||
interface IntrinsicElements {
|
interface IntrinsicElements {
|
||||||
|
|
Loading…
Reference in a new issue