UNPKG

hades-cli

Version:
28 lines (27 loc) 973 B
import { SourceFile, ArrayLiteralExpression } from 'ts-morph'; export declare class ArrayDriver { /** * Create items in array * * @param sourceFile * @param item item to add to array * @param array name array or Array literal where will be added the item */ static createArrayItems(sourceFile: SourceFile, items: string[], array: string | ArrayLiteralExpression): void; /** * Create item in array * * @param sourceFile * @param item item to add to array * @param array name array or Array literal where will be added the item */ static createArrayItem(sourceFile: SourceFile, item: string, array: string | ArrayLiteralExpression): void; private static isDuplicateArrayValue; /** * From the items array, only non-repeating items are returned. * * @param sourceFile * @param moduleNames */ private static getUniqueArrayItems; }