mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Creating a separate interface for IncomingMessageHeaders
This allows for IncomingMessage.headers types to be extensible per project. Suppose a node service expects a fixed set of headers of certain type (say string), that service can specify custom IncomingMessageHeaders with more concrete types defined.
For example
```
interface IncomingMessageHeaders {
"host": string;
"set-cookie": string[]
}
```
* Changing IncomingMessageHeaders defn
This definition adds undefined in addition to string and string[].
|
||
|---|---|---|
| .. | ||
| v0 | ||
| v4 | ||
| v6 | ||
| index.d.ts | ||
| node-tests.ts | ||
| tsconfig.json | ||
| tslint.json | ||