recoil
Version:
Recoil - A state management library for React
27 lines (26 loc) • 697 B
Flow
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails oncall+recoil
* @flow strict
* @format
*/
;
export type NodeKey = string;
export opaque type StateID = number;
export opaque type StoreID = number;
export opaque type ComponentID = number;
let nextTreeStateVersion = 0;
declare var getNextTreeStateVersion: () => any;
let nextStoreID = 0;
declare var getNextStoreID: () => any;
let nextComponentID = 0;
declare var getNextComponentID: () => any;
module.exports = {
getNextTreeStateVersion,
getNextStoreID,
getNextComponentID
};