Commit ebbeba4
Add maxHeaderSize to types
Adds the `.maxHeaderSize` field to the types of the `HTTPParserJS` class, otherwise tsc complains that the field doesn't exist.
Fixes this sort of thing:
```ts
const parser = new HTTPParser('RESPONSE')
parser.maxHeaderSize = 1024 * 1024
// error TS2339: Property 'maxHeaderSize' does not exist on type 'HTTPParserJS'
```1 parent 9e5daea commit ebbeba4
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| |||
0 commit comments