Created
June 24, 2015 16:05
-
-
Save diverted247/64e0387b403e56bd452b to your computer and use it in GitHub Desktop.
Nested type definition syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config?: { | |
handler: any; | |
bind: any; | |
app: any; | |
plugins: { | |
[name: string]: any; | |
}; | |
pre: Array<() => void>; | |
validate: { | |
headers: any; | |
params: any; | |
query: any; | |
payload: any; | |
errorFields?: any; | |
failAction?: string | IFailAction; | |
}; | |
payload: { | |
output: { | |
data: any; | |
stream: any; | |
file: any; | |
}; | |
parse?: any; | |
allow?: string|Array<string>; | |
override?: string; | |
maxBytes?: number; | |
uploads?: number; | |
failAction?: string; | |
}; | |
response: { | |
schema: any; | |
sample: number; | |
failAction: string; | |
}; | |
cache: { | |
privacy: string; | |
expiresIn: number; | |
expiresAt: number; | |
}; | |
auth: string|boolean|{ | |
mode: string; | |
strategies: Array<string>; | |
payload?: boolean|string; | |
tos?: boolean|string; | |
scope?: string|Array<string>; | |
entity: string; | |
}; | |
cors?: boolean; | |
jsonp?: string; | |
description?: string; | |
notes?: string|Array<string>; | |
tags?: Array<string>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment