File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ import { ZipCodeValidator as Zip } from "./ZipCodeValidator";
423423
424424if (needZipValidation ) {
425425 var x: typeof Zip = require (" ./ZipCodeValidator" );
426- if (x .isAcceptable (" ....." )) { /* ... */ }
426+ if (new x .isAcceptable (" ....." )) { /* ... */ }
427427}
428428```
429429
@@ -436,7 +436,7 @@ import { ZipCodeValidator as Zip } from "./ZipCodeValidator";
436436
437437if (needZipValidation ) {
438438 require ([" ./ZipCodeValidator" ], (x : typeof Zip ) => {
439- if (x .isAcceptable (" ..." )) { /* ... */ }
439+ if (new x .isAcceptable (" ..." )) { /* ... */ }
440440 });
441441}
442442```
@@ -450,7 +450,7 @@ import { ZipCodeValidator as Zip } from "./ZipCodeValidator";
450450
451451if (needZipValidation ) {
452452 System .import (" ./ZipCodeValidator" ).then ((x : typeof Zip ) => {
453- if (x .isAcceptable (" ..." )) { /* ... */ }
453+ if (new x .isAcceptable (" ..." )) { /* ... */ }
454454 });
455455}
456456```
You can’t perform that action at this time.
0 commit comments