1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-14 18:52:48 +00:00

typescript conversion

This commit is contained in:
2017-08-02 19:50:00 -05:00
parent 43fadf9c6a
commit 84c2425c6d
13 changed files with 347 additions and 64 deletions

View File

@@ -3,9 +3,23 @@ import axios from 'axios';
import './Downloader.scss';
export default class Downloader extends React.Component {
interface Props {
constructor(props) {
}
interface State {
fileType: string;
url: string;
message: string;
downloadLink: string;
downLoadFileName: string;
dataLoading: boolean;
dataLoaded: boolean;
}
export class Downloader extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
this.state = {
fileType: "mp3",