-
Notifications
You must be signed in to change notification settings - Fork 2
/
fnap.d.ts
38 lines (35 loc) · 830 Bytes
/
fnap.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import type { FastifyPluginCallback } from 'fastify'
export interface FastifyNoAdditionalPropertiesOptions {
/**
* If true, update the request body schema.
* @default true
*/
body?: boolean
/**
* If true, update the request headers schema.
* @default false
*/
headers?: boolean
/**
* If true, update the URL parameters schema.
* @default false
*/
params?: boolean
/**
* If true, update the URL querystring schema.
* @default true
*/
query?: boolean
/**
* If true, update all response schemas.
* @default false
*/
response?: boolean
/**
* If true, update schemas registered **AFTER** this plugin registration.
* @default false
*/
ref?: boolean
}
declare const plugin: FastifyPluginCallback<FastifyNoAdditionalPropertiesOptions>
export default plugin