private validate(name: string) { const schematic = NestCollection.schematics.find( (s) => s.name === name || s.alias === name ); if (schematic === undefined || schematic === null) { throw new Error( `Invalid schematic "${name}". Please, ensure that "${name}" really exists in this collection.` ); } return schematic.name; }
public static getSchematics(): Schematic[] { return NestCollection.schematics; }
private validate(name: string) { const schematic = NestCollection.schematics.find( (s) => s.name === name || s.alias === name ); if (schematic === undefined || schematic === null) { throw new Error( `Invalid schematic "${name}". Please, ensure that "${name}" really exists in this collection.` ); } return schematic.name; }
public static getSchematics(): Schematic[] { return NestCollection.schematics; }