typescript import a class in another file and use the method code example
Example: typescript import particular class from file
import { ZipCodeValidator } from "./ZipCodeValidator";
let myValidator = new ZipCodeValidator();
import { ZipCodeValidator } from "./ZipCodeValidator";
let myValidator = new ZipCodeValidator();