When using ESM, gql becomes non-callable because TS doesn't like namespaces with ESM index.d.ts file:
export declare function gql(literals: string | readonly string[], ...args: any[]): DocumentNode;
export declare namespace gql {
var _a: typeof import(".").gql;
export { _a as default };
}
I get this error:
export const RepositorySummary = gql`
~~~
src/generated/queries.ts:6880:33 - error TS2349: This expression is not callable.
Similar to dotansimha/graphql-code-generator-community#228
When using ESM,
gqlbecomes non-callable because TS doesn't like namespaces with ESMindex.d.tsfile:I get this error:
Similar to dotansimha/graphql-code-generator-community#228