UNPKG

@graphql-hive/laboratory

Version:

[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.

14 lines (13 loc) 411 B
export interface LaboratoryEnv { variables: Record<string, string>; } export interface LaboratoryEnvState { env: LaboratoryEnv | null; } export interface LaboratoryEnvActions { setEnv: (env: LaboratoryEnv) => void; } export declare const useEnv: (props: { defaultEnv?: LaboratoryEnv | null; onEnvChange?: (env: LaboratoryEnv | null) => void; }) => LaboratoryEnvState & LaboratoryEnvActions;