@@ -90,15 +90,15 @@ function done( error: Error | null, server: any ) {
90
90
httpServerFactory ( { 'port' : ( x : number ) : number => x } , requestListener ) ; // $ExpectError
91
91
}
92
92
93
- // The compiler throws an error if the function is provided a `maxPort ` option which is not a number...
93
+ // The compiler throws an error if the function is provided a `maxport ` option which is not a number...
94
94
{
95
- httpServerFactory ( { 'maxPort ' : 'abc' } , requestListener ) ; // $ExpectError
96
- httpServerFactory ( { 'maxPort ' : true } , requestListener ) ; // $ExpectError
97
- httpServerFactory ( { 'maxPort ' : false } , requestListener ) ; // $ExpectError
98
- httpServerFactory ( { 'maxPort ' : null } , requestListener ) ; // $ExpectError
99
- httpServerFactory ( { 'maxPort ' : [ ] } , requestListener ) ; // $ExpectError
100
- httpServerFactory ( { 'maxPort ' : { } } , requestListener ) ; // $ExpectError
101
- httpServerFactory ( { 'maxPort ' : ( x : number ) : number => x } , requestListener ) ; // $ExpectError
95
+ httpServerFactory ( { 'maxport ' : 'abc' } , requestListener ) ; // $ExpectError
96
+ httpServerFactory ( { 'maxport ' : true } , requestListener ) ; // $ExpectError
97
+ httpServerFactory ( { 'maxport ' : false } , requestListener ) ; // $ExpectError
98
+ httpServerFactory ( { 'maxport ' : null } , requestListener ) ; // $ExpectError
99
+ httpServerFactory ( { 'maxport ' : [ ] } , requestListener ) ; // $ExpectError
100
+ httpServerFactory ( { 'maxport ' : { } } , requestListener ) ; // $ExpectError
101
+ httpServerFactory ( { 'maxport ' : ( x : number ) : number => x } , requestListener ) ; // $ExpectError
102
102
}
103
103
104
104
// The compiler throws an error if the function is provided a `hostname` option which is not a string...
0 commit comments