UNPKG

@spartacus/schematics

Version:
9 lines (8 loc) 719 B
import { TempScopedNodeJsSyncHost } from '@angular-devkit/core/node/testing'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import ts from 'typescript'; export declare function writeFile(host: TempScopedNodeJsSyncHost, filePath: string, contents: string): void; export declare function runMigration(appTree: UnitTestTree, schematicRunner: SchematicTestRunner, migrationScript: string, options?: {}): Promise<UnitTestTree>; export declare function getConstructor(nodes: ts.Node[]): ts.Node; export declare function getSuperNode(constructorNode: ts.Node): ts.Node | undefined; export declare function getParams(constructorNode: ts.Node, camelizedParamNames: string[]): string[];