Skip to content

Commit

Permalink
fix(serve-cli): typings for cache definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Oct 23, 2024
1 parent e0c4cd0 commit b256868
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-dingos-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/serve-cli': patch
---

Fix typings for `cache` definition
8 changes: 5 additions & 3 deletions packages/serve-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export type GatewayCLIConfig = (
pollingInterval?: number;
} & GatewayCLIBuiltinPluginConfig;

export interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supergraph'> {
export interface GatewayCLISupergraphConfig
extends Omit<GatewayConfigSupergraph, 'supergraph' | 'cache'> {
/**
* SDL, path or an URL to the Federation Supergraph.
*
Expand All @@ -54,7 +55,8 @@ export interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph
supergraph?: GatewayConfigSupergraph['supergraph'];
}

export interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph'> {
export interface GatewayCLISubgraphConfig
extends Omit<GatewayConfigSubgraph, 'subgraph' | 'cache'> {
/**
* SDL, path or an URL to the Federation Supergraph.
*
Expand All @@ -66,7 +68,7 @@ export interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 's
subgraph?: GatewayConfigSubgraph['subgraph'];
}

export interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy'> {
export interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy, 'proxy' | 'cache'> {
/**
* HTTP executor to proxy all incoming requests to another HTTP endpoint.
*/
Expand Down

0 comments on commit b256868

Please sign in to comment.