UNPKG

407 BTypeScriptView Raw
1import React from "react";
2declare function useObserveContext<T>(context: React.Context<T>, nextObserveState?: (keyof T)[]): T;
3declare function calculateChangedBits(prev: {
4 [x: string]: any;
5}, next: any): number;
6declare function createObserveContext<T>(defaultValue: T): React.Context<T>;
7export { calculateChangedBits, useObserveContext, createObserveContext };
8//# sourceMappingURL=observe.d.ts.map
\No newline at end of file