mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
536 B
TypeScript
24 lines
536 B
TypeScript
import express = require("express");
|
|
import query = require("qs-middleware");
|
|
|
|
const app = express();
|
|
|
|
app.use(query());
|
|
app.use(query({}));
|
|
app.use(
|
|
query({
|
|
delimiter: "string",
|
|
depth: 123,
|
|
decoder: str => str.toLowerCase(),
|
|
arrayLimit: 123,
|
|
parseArrays: true,
|
|
allowDots: true,
|
|
plainObjects: true,
|
|
allowPrototypes: true,
|
|
parameterLimit: 123,
|
|
strictNullHandling: true,
|
|
ignoreQueryPrefix: true
|
|
})
|
|
);
|
|
app.use(query({ delimiter: /regexp/ }));
|