Skip to content

Type Alias: OutputFilenameResolver

ts
type OutputFilenameResolver = (originalFilename, counter) => string;

Defined in: packages/ai-enhancer/src/widgets/ai-editor/ui/UcAiEnhancer.ts:81

Resolves the filename given to a generated/edited result. Receives the source image's original filename (undefined when generating from scratch) and the 1-based counter of this generation within the session's history (the first is 1). Returns the desired output filename.

Parameters

ParameterType
originalFilenamestring | undefined
counternumber

Returns

string