@lewebsimple/nuxt-graphql 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -3,8 +3,10 @@ type GraphQLContextFactory<TContext extends Record<string, unknown>> = (event: H
|
|
|
3
3
|
/**
|
|
4
4
|
* Define a GraphQL context factory with proper typing.
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
6
|
+
* @param createContext Context factory function.
|
|
7
7
|
* @returns The same factory, typed for inference.
|
|
8
8
|
*/
|
|
9
|
-
export declare function defineGraphQLContext<TContext extends Record<string, unknown>>(
|
|
9
|
+
export declare function defineGraphQLContext<TContext extends Record<string, unknown>>(createContext: GraphQLContextFactory<TContext>): {
|
|
10
|
+
createContext: GraphQLContextFactory<TContext>;
|
|
11
|
+
};
|
|
10
12
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function defineGraphQLContext(
|
|
2
|
-
return
|
|
1
|
+
export function defineGraphQLContext(createContext) {
|
|
2
|
+
return { createContext };
|
|
3
3
|
}
|