viddo/atom-textual-velocity

View on GitHub
flow-types/Loading.js

Summary

Maintainability
A
0 mins
Test Coverage
/* @flow */

export type LoadingState =
  | ReadDirLoadingState
  | ReadingFilesLoadingState
  | DoneLoadingState;

type ReadDirLoadingState = {
  +status: "readDir",
  +filesCount: number
};

type ReadingFilesLoadingState = {
  +status: "readingFiles",
  +readyCount: number,
  +totalCount: number
};

type DoneLoadingState = {
  +status: "done"
};