@types/react-relay
Version:
TypeScript definitions for react-relay
12 lines (8 loc) • 405 B
TypeScript
// This contextual profiler can be used to wrap a react sub-tree. It will bind
// the RelayProfiler during the render phase of these components. Allows
// collecting metrics for a specific part of your application.
import { Context } from "react";
export interface ProfilerContextType {
wrapPrepareQueryResource: <T>(cb: () => T) => T;
}
export const ProfilerContext: Context<ProfilerContextType>;