fix(rdfjs-express-handler): correct express augmentation (#47030)

This commit is contained in:
Tomasz Pluskiewicz 2020-08-28 06:13:33 +02:00 committed by GitHub
parent fa4f11f370
commit 9533280cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import { Stream, DatasetCore, DatasetCoreFactory } from 'rdf-js';
import { Request, Response, RequestHandler } from 'express';
import formats = require('@rdfjs/formats-common');
declare module 'express' {
declare module 'express-serve-static-core' {
interface Request {
dataset(parserOptions?: any): Promise<DatasetCore>;
quadStream(parserOptions?: any): Stream;