2017-05-26 02:49:25 +03:00
|
|
|
interface RelayProps {
|
|
|
|
articles: a | null,
|
|
|
|
}
|
|
|
|
interface RelayProps {
|
|
|
|
articles: Array<{
|
|
|
|
__id: string,
|
|
|
|
} | null> | null | void,
|
|
|
|
}
|
|
|
|
|
|
|
|
type UploadState<E, EM, D>
|
|
|
|
// The upload hasnt begun yet
|
|
|
|
= {type: "Not_begun"}
|
|
|
|
// The upload timed out
|
|
|
|
| {type: "Timed_out"}
|
|
|
|
// Failed somewhere on the line
|
|
|
|
| {type: "Failed", error: E, errorMsg: EM}
|
|
|
|
// Uploading to aws3 and CreatePostMutation succeeded
|
|
|
|
| {type: "Success", data: D};
|
|
|
|
|
|
|
|
type UploadState<E, EM, D>
|
|
|
|
// The upload hasnt begun yet
|
|
|
|
= A
|
|
|
|
// The upload timed out
|
|
|
|
| B
|
|
|
|
// Failed somewhere on the line
|
|
|
|
| C
|
|
|
|
// Uploading to aws3 and CreatePostMutation succeeded
|
|
|
|
| D;
|
2017-06-03 01:40:33 +03:00
|
|
|
|
|
|
|
type window = Window & {
|
|
|
|
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: Function;
|
|
|
|
};
|