-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from rcaferati/basic-definitions
Implement basic definitions
- Loading branch information
Showing
17 changed files
with
134 additions
and
70 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
Large diffs are not rendered by default.
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
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 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 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 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,80 @@ | ||
// Type definitions for react-awesome-button | ||
// Project: https://github.com/rcaferati/react-awesome-button | ||
// Definitions by: Rafael Caferati <https://github.com/rcaferati> | ||
// TypeScript Version: 3.0.0 | ||
|
||
declare module 'react-awesome-button' { | ||
import React, { Component } from 'react'; | ||
|
||
export interface AwesomeButtonProps { | ||
action?(): void; | ||
active: boolean; | ||
blocked: boolean; | ||
children: React.ReactNode; | ||
className: string; | ||
cssModule: object; | ||
disabled: boolean; | ||
element?(): void; | ||
href: string; | ||
moveEvents: boolean; | ||
onPress?(): void; | ||
onReleased?(): void; | ||
placeholder: boolean; | ||
ripple: boolean; | ||
rootElement: string; | ||
size: string; | ||
style: object; | ||
target: string; | ||
title: string; | ||
to: string; | ||
type: string; | ||
visible: boolean; | ||
} | ||
|
||
export default class AwesomeButton extends Component< | ||
AwesomeButtonProps, | ||
{} | ||
> {} | ||
|
||
export interface AwesomeButtonProgressProps { | ||
action?(): void; | ||
children: React.ReactNode; | ||
cssModule: object; | ||
disabled: boolean; | ||
fakePress: boolean; | ||
loadingLabel: string; | ||
onPress?(): void; | ||
releaseDelay: number; | ||
resultLabel: string; | ||
rootElement: React.ReactNode; | ||
size: string; | ||
type: string; | ||
} | ||
|
||
export default class AwesomeButtonProgress extends Component< | ||
AwesomeButtonProgressProps, | ||
{} | ||
> {} | ||
|
||
export interface AwesomeButtonSocialProps { | ||
action?(): void; | ||
children: React.ReactNode; | ||
disabled: boolean; | ||
href: string; | ||
icon: boolean; | ||
iconHeight: number; | ||
iconWidth: number; | ||
image: string; | ||
message: string; | ||
onPress?(): void; | ||
phone: string; | ||
type: string; | ||
url: string; | ||
user: string; | ||
} | ||
|
||
export default class AwesomeButtonSocial extends Component< | ||
AwesomeButtonSocialProps, | ||
{} | ||
> {} | ||
} |
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.