-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51fba2c
commit f988ee1
Showing
12 changed files
with
63 additions
and
13 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
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,8 @@ | ||
import {ComponentType} from 'react'; | ||
|
||
interface UnicornProps { | ||
unicorn: number; | ||
rainbow: string; | ||
} | ||
|
||
export const Unicorn: ComponentType<UnicornProps>; |
File renamed without changes.
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,9 @@ | ||
import * as React from 'react'; | ||
import {expectType, expectError} from '../../../..'; | ||
import {Unicorn} from '.'; | ||
|
||
expectType<JSX.Element>(<Unicorn unicorn={1} rainbow='🌈' />); | ||
|
||
expectError(<Unicorn foo='bar' />); | ||
expectError(<Unicorn unicorn={1} />); | ||
expectError(<Unicorn rainbow='bar' />); |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
source/test/fixtures/tsx/index.d.ts → ...ce/test/fixtures/tsx/component/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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import {Component} from 'react'; | ||
|
||
interface UnicornProps { | ||
unicorn: number; | ||
rainbow: string; | ||
} | ||
|
||
|
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,12 @@ | ||
'use strict'; | ||
const React = require('react'); | ||
|
||
export class Unicorn extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
return <h1>{this.props.rainbow}</h1>; | ||
} | ||
} |
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,9 @@ | ||
import * as React from 'react'; | ||
import {expectType, expectError} from '../../../..'; | ||
import {Unicorn} from '.'; | ||
|
||
expectType<JSX.Element>(<Unicorn unicorn={1} rainbow='🌈' />); | ||
|
||
expectError(<Unicorn foo='bar' />); | ||
expectError(<Unicorn unicorn={1} />); | ||
expectError(<Unicorn rainbow='bar' />); |
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 @@ | ||
{ | ||
"name": "foo", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"dependencies": { | ||
"react": "*" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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