9 lines
356 B
TypeScript
9 lines
356 B
TypeScript
/**
|
|
* Creates a list of all possible combinations of the given strings.
|
|
* @example
|
|
* const out2 = createStringVariations('name is {chicken,wolf,sheep}');
|
|
* console.log(out2); // [ 'name is chicken', 'name is wolf', 'name is sheep' ]
|
|
* @param string - The string to process
|
|
*/
|
|
export declare function createStringVariations(string: string): string[];
|