Skip to content

Commit e77bcab

Browse files
committed
Move PromseOrDirect into interfaces
1 parent adda83c commit e77bcab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/website/graphile-config/middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ library):
185185

186186
```ts
187187
import { Middleware, orderedApply, resolvePresets } from "graphile-config";
188-
type PromiseOrDirect<T> = Promise<T> | T;
189188

190189
// Get the user's Graphile Config from somewhere, e.g.
191190
import config from "./graphile.config.js";
@@ -194,6 +193,7 @@ import config from "./graphile.config.js";
194193
const resolvedPreset = resolvePresets([config]);
195194

196195
/***** interfaces.ts *****/
196+
export type PromiseOrDirect<T> = Promise<T> | T;
197197

198198
// Define the middlewares that you support, their event type and their return type
199199
interface MyMiddleware {

0 commit comments

Comments
 (0)