We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adda83c commit e77bcabCopy full SHA for e77bcab
utils/website/graphile-config/middleware.md
@@ -185,7 +185,6 @@ library):
185
186
```ts
187
import { Middleware, orderedApply, resolvePresets } from "graphile-config";
188
-type PromiseOrDirect<T> = Promise<T> | T;
189
190
// Get the user's Graphile Config from somewhere, e.g.
191
import config from "./graphile.config.js";
@@ -194,6 +193,7 @@ import config from "./graphile.config.js";
194
193
const resolvedPreset = resolvePresets([config]);
195
196
/***** interfaces.ts *****/
+export type PromiseOrDirect<T> = Promise<T> | T;
197
198
// Define the middlewares that you support, their event type and their return type
199
interface MyMiddleware {
0 commit comments