@imgly/plugin-ai-generation-web
Version:
AI generation plugin for the CE.SDK editor
8 lines (7 loc) • 351 B
TypeScript
/**
* For the given array that contains strings `ly.img.separator` and other items,
* this function will remove all leading and trailing separators,
* as well as any consecutive separators in between.
*/
declare function compactSeparators<T>(quickActions: (T | 'ly.img.separator')[]): (T | 'ly.img.separator')[];
export default compactSeparators;