File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -201,9 +201,7 @@ const schema = require("./options.json");
201201 */
202202
203203if ( ! process . env . WEBPACK_SERVE ) {
204- // TODO fix me in the next major release
205- // @ts -ignore
206- process . env . WEBPACK_SERVE = true ;
204+ process . env . WEBPACK_SERVE = "true" ;
207205}
208206
209207/**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ describe("API", () => {
5555
5656 await server . start ( ) ;
5757
58- expect ( process . env . WEBPACK_SERVE ) . toBe ( true ) ;
58+ expect ( process . env . WEBPACK_SERVE ) . toBe ( " true" ) ;
5959
6060 const response = await page . goto ( `http://127.0.0.1:${ port } /` , {
6161 waitUntil : "networkidle0" ,
Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ declare class Server {
612612 } ;
613613 value : {
614614 description : string ;
615- type : string ;
615+ /** @type { Compiler | MultiCompiler } */ type : string ;
616616 } ;
617617 } ;
618618 cli : {
@@ -645,6 +645,9 @@ declare class Server {
645645 description : string ;
646646 link : string ;
647647 } ;
648+ /**
649+ * @type {ReturnType<Compiler["getInfrastructureLogger"]> }
650+ * */
648651 HistoryApiFallback : {
649652 anyOf : (
650653 | {
@@ -668,6 +671,11 @@ declare class Server {
668671 Host : {
669672 description : string ;
670673 link : string ;
674+ /**
675+ * @private
676+ * @returns {StatsOptions }
677+ * @constructor
678+ */
671679 anyOf : (
672680 | {
673681 enum : string [ ] ;
@@ -872,6 +880,10 @@ declare class Server {
872880 items : {
873881 anyOf : (
874882 | {
883+ /**
884+ * @private
885+ * @param {Compiler } compiler
886+ */
875887 type : string ;
876888 instanceof ?: undefined ;
877889 }
@@ -908,6 +920,7 @@ declare class Server {
908920 exclude : boolean ;
909921 } ;
910922 } ;
923+ /** @type {ServerConfiguration } */
911924 ServerObject : {
912925 type : string ;
913926 properties : {
@@ -1148,7 +1161,7 @@ declare class Server {
11481161 cli ?: undefined ;
11491162 }
11501163 ) [ ] ;
1151- description : string ;
1164+ /** @type { MultiCompiler } */ description : string ;
11521165 link : string ;
11531166 } ;
11541167 StaticObject : {
@@ -1280,6 +1293,7 @@ declare class Server {
12801293 ) [ ] ;
12811294 description : string ;
12821295 } ;
1296+ /** @type {NormalizedStatic } */
12831297 options : {
12841298 type : string ;
12851299 description : string ;
You can’t perform that action at this time.
0 commit comments