Moved NavPlugin types into seperate file

Summary: Moved Flow types into their own file. I will be adding more types as part of the auto complete for the navigation bar and this is to keep the code more organized.

Reviewed By: danielbuechele

Differential Revision: D16540279

fbshipit-source-id: d69ac0d05f91e9d92fcda37325c791ddc83a52c9
This commit is contained in:
Benjamin Elo
2019-07-29 03:44:54 -07:00
committed by Facebook Github Bot
parent 84f9a1d8b5
commit 292efb0bb3
8 changed files with 39 additions and 25 deletions

View File

@@ -16,25 +16,12 @@ import {
} from './components';
import {readBookmarksFromDB, writeBookmarkToDB} from './util/indexedDB';
type State = {|
bookmarks: Map<string, Bookmark>,
shouldShowSaveBookmarkDialog: boolean,
saveBookmarkURI: ?string,
|};
export type NavigationEvent = {|
date: ?Date,
uri: ?string,
|};
export type Bookmark = {|
uri: string,
commonName: string,
|};
export type PersistedState = {|
navigationEvents: Array<NavigationEvent>,
|};
import type {
State,
PersistedState,
Bookmark,
NavigationEvent,
} from './flow-types';
export default class extends FlipperPlugin<State, {}, PersistedState> {
static title = 'Navigation';