use express types instead of custom versions

This commit is contained in:
rijkvanzanten
2021-01-12 16:06:35 -05:00
parent a41559b32f
commit c1f87113bf
3 changed files with 80998 additions and 35560 deletions

View File

@@ -1,12 +1,13 @@
import { Request, Router, Response, NextFunction } from 'express';
import { Router, Response } from 'express';
import { graphqlHTTP } from 'express-graphql';
import { GraphQLService } from '../services';
import { respond } from '../middleware/respond';
import asyncHandler from '../utils/async-handler';
const router = Router();
router.use(
asyncHandler(async (req: Request, res: Response, next: NextFunction) => {
asyncHandler(async (req, res, next) => {
const service = new GraphQLService({
accountability: req.accountability,
schema: req.schema,