internalPlugin.d.ts 748 B

123456789
  1. import type { BaseContext, ApolloServerPlugin } from './externalTypes/index.js';
  2. export interface InternalApolloServerPlugin<TContext extends BaseContext> extends ApolloServerPlugin<TContext> {
  3. __internal_plugin_id__: InternalPluginId;
  4. __is_disabled_plugin__: boolean;
  5. }
  6. export declare function internalPlugin<TContext extends BaseContext>(p: InternalApolloServerPlugin<TContext>): ApolloServerPlugin<TContext>;
  7. export type InternalPluginId = 'CacheControl' | 'LandingPageDisabled' | 'SchemaReporting' | 'InlineTrace' | 'UsageReporting';
  8. export declare function pluginIsInternal<TContext extends BaseContext>(plugin: ApolloServerPlugin<TContext>): plugin is InternalApolloServerPlugin<TContext>;
  9. //# sourceMappingURL=internalPlugin.d.ts.map