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

Refactor: Typescript conversion #7

Merged
merged 9 commits into from Jun 23, 2017
View
@@ -6,14 +6,13 @@
"modules": false
}
],
"flow",
"react",
"env",
"stage-0"
],
"plugins": [
"react-hot-loader/babel",
"relay",
"react-hot-loader/babel",
"autobind-class-methods"
]
}
View

This file was deleted.

Oops, something went wrong.
View
@@ -57,6 +57,3 @@ typings/
# dotenv environment variables file
.env
# configuration
config/*
!config/default.js
View
@@ -1,5 +1,5 @@
// Place your settings in this file to overwrite default and user settings.
{
"flow.useNPMPackagedFlow": true,
"javascript.validate.enable": false
"tslint.enable": true,
"prettier.trailingComma": "all"
}
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,4 @@
export interface IViewer {
id: string;
user: any;
}
@@ -0,0 +1,24 @@
declare module 'react-relay' {
const graphql: any;
interface IQueryRendererProps {
environment: {};
query: any;
variables: any;
render: (error: Error, props: any) => JSX.Element;
}
const QueryRenderer: any;
interface IMutationParams {
mutation: string;
variables: any;
onCompleted: (res: any) => void;
onError: (err: Error) => void;
}
function commitMutation(
environment: {},
params: IMutationParams,
): void;
}
@@ -0,0 +1,6 @@
declare module 'relay-runtime' {
const RecordSource: any;
const Store: any;
const Network: any;
const Environment: any;
}
@@ -0,0 +1,5 @@
declare module 'siku-types' {
export type HOCType<P extends {}, V extends {}> = (
BaseComponent: React.StatelessComponent<P>,
) => React.StatelessComponent<V>;
}
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.