Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates to typescript #40

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ jobs:
name: Running Linter
command: yarn run lint

- run:
name: Running Flow
command: yarn run flow

- run:
name: Running Tests
command: yarn run test
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

45 changes: 0 additions & 45 deletions .eslintrc

This file was deleted.

14 changes: 0 additions & 14 deletions .flowconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"semi": false,
"singleQuote": true,
"singleQuote": false,
"trailingComma": "es5"
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"unmock.refreshToken": null
}
23 changes: 23 additions & 0 deletions dist/Fetch.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React, { Component } from "react";
import { IDataFetcher, IProps } from "./types";
declare class Fetch extends Component<Partial<IProps>> implements IDataFetcher {
private data?;
private didCallOnLoad;
private isLoaded;
private isUnmounted;
componentDidMount(): void;
componentDidUpdate(prevProps: Partial<IProps>): void;
componentWillUnmount(): void;
shouldComponentUpdate(nextProps: Partial<IProps>): boolean;
render(): any;
fetchData(): Promise<void>;
private handleData;
private printError;
private renderLoader;
private returnData;
private validateProps;
}
declare const _default: React.FunctionComponent<Partial<IProps>>;
export default _default;
export { Fetch };
//# sourceMappingURL=Fetch.d.ts.map
1 change: 1 addition & 0 deletions dist/Fetch.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading