-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
21 changed files
with
213 additions
and
119 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/BooleanFalse.input.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asFalse = (arg: string): JSX.Element => <Button /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/BooleanFalse.output.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asFalse = (arg: string): JSX.Element => <Button hasBorder={false} /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/BooleanTrue.input.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asTrue = (arg: string): JSX.Element => <Button /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/BooleanTrue.output.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asTrue = (arg: string): JSX.Element => <Button hasBorder /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/NamedImport.input.tsx
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,7 @@ | ||
import { Button } from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asString = (arg: string): JSX.Element => <Button /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/NamedImport.output.tsx
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,7 @@ | ||
import { Button } from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asString = (arg: string): JSX.Element => <Button import="named" /> |
8 changes: 8 additions & 0 deletions
8
transforms/add-prop/__testfixtures__/typescript/NoImport.input.tsx
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 @@ | ||
// Wrong Import | ||
import Tile from "carbon-react/lib/components/NotTile"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export default (arg: string): JSX.Element => <Tile />; |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/NoTransformRequired.input.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const App = (arg: string): JSX.Element => <Button ml="2" /> |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/Number.input.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asNumber = (arg: string): JSX.Element => <Button /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/Number.output.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asNumber = (arg: string): JSX.Element => <Button ml={2} /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/String.input.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asString = (arg: string): JSX.Element => <Button /> |
7 changes: 7 additions & 0 deletions
7
transforms/add-prop/__testfixtures__/typescript/String.output.tsx
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,7 @@ | ||
import Button from "carbon-react/lib/components/button"; | ||
|
||
interface SomeInterface { | ||
label: string; | ||
} | ||
|
||
export const asString = (arg: string): JSX.Element => <Button ml="16px" /> |
Oops, something went wrong.