You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ts-anglo-helper/.vscode/bak/SolutionImplementationReade...

22 lines
667 B

import * as fs from "fs";
import { type TypeSolutionImplementation } from "./types";
import { SolutionImplementation } from "./SolutionImplementation";
export class SolutionImplementationReader {
private readonly solutionImplementations: TypeSolutionImplementation[];
constructor() {
const json = fs.readFileSync("solutions.json", "utf-8");
this.solutionImplementations = JSON.parse(json);
}
public readSolutionUrl(): void {
this.solutionImplementations.forEach(
(solutionImplementation: TypeSolutionImplementation) => {
const s = new SolutionImplementation(solutionImplementation.url);
console.log(JSON.stringify(s, null, 2));
}
);
}
}

Powered by TurnKey Linux.