We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ba09e commit 4ff1db2Copy full SHA for 4ff1db2
adonis-typings/request.ts
@@ -205,7 +205,8 @@ declare module '@ioc:Adonis/Core/Request' {
205
* Returns value for a given header key. The default value is
206
* used when original value is `undefined`.
207
*/
208
- header(key: string, defaultValue?: any): string | undefined
+ header(key: string): string | undefined
209
+ header<T>(key: string, defaultValue?: T): string | T
210
211
/**
212
* Returns the ip address of the user. This method is optimize to fetch
0 commit comments