Skip to main content

PresetContentGenerator

Presetter Types API v8.3.0


Presetter Types API / PresetContentGenerator

Type Alias: PresetContentGenerator<T>

PresetContentGenerator<T> = (current, context) => Promisable<T | null | undefined>

Defined in: content.ts:24

generator function for preset content which accepts the current content and context

Type Parameters

T

T

Parameters

current

T | null | undefined

the current value of the content

context

PresetContentContext

the current context of the preset generation

Returns

Promisable<T | null | undefined>

the new or modified content or file path or null