@@ -113,15 +113,15 @@ function done( error: Error | null, server: any ) {
113
113
http2ServerFactory ( { 'port' : ( x : number ) : number => x } , requestListener ) ; // $ExpectError
114
114
}
115
115
116
- // The compiler throws an error if the function is provided a `maxPort ` option which is not a number...
116
+ // The compiler throws an error if the function is provided a `maxport ` option which is not a number...
117
117
{
118
- http2ServerFactory ( { 'maxPort ' : 'abc' } , requestListener ) ; // $ExpectError
119
- http2ServerFactory ( { 'maxPort ' : true } , requestListener ) ; // $ExpectError
120
- http2ServerFactory ( { 'maxPort ' : false } , requestListener ) ; // $ExpectError
121
- http2ServerFactory ( { 'maxPort ' : null } , requestListener ) ; // $ExpectError
122
- http2ServerFactory ( { 'maxPort ' : [ ] } , requestListener ) ; // $ExpectError
123
- http2ServerFactory ( { 'maxPort ' : { } } , requestListener ) ; // $ExpectError
124
- http2ServerFactory ( { 'maxPort ' : ( x : number ) : number => x } , requestListener ) ; // $ExpectError
118
+ http2ServerFactory ( { 'maxport ' : 'abc' } , requestListener ) ; // $ExpectError
119
+ http2ServerFactory ( { 'maxport ' : true } , requestListener ) ; // $ExpectError
120
+ http2ServerFactory ( { 'maxport ' : false } , requestListener ) ; // $ExpectError
121
+ http2ServerFactory ( { 'maxport ' : null } , requestListener ) ; // $ExpectError
122
+ http2ServerFactory ( { 'maxport ' : [ ] } , requestListener ) ; // $ExpectError
123
+ http2ServerFactory ( { 'maxport ' : { } } , requestListener ) ; // $ExpectError
124
+ http2ServerFactory ( { 'maxport ' : ( x : number ) : number => x } , requestListener ) ; // $ExpectError
125
125
}
126
126
127
127
// The compiler throws an error if the function is provided a `hostname` option which is not a string...
0 commit comments