Skip to main content

PresetAssets

Presetter Types API v8.3.0


Presetter Types API / PresetAssets

Interface: PresetAssets

Defined in: asset.ts:11

defines the structure for preset assets, including JSON, YAML, JS, TS, or custom file formats

Indexable

[list: `${string}ignore`]: PresetContent<string[]>

defines ignored file patterns

[json: `${string}.json` | `${string}.yaml`]: PresetContent<JsonObject>

defines JSON or YAML content

[esm: `${string}.js` | `${string}.cjs` | `${string}.mjs` | `${string}.jsx` | `${string}.ts` | `${string}.cts` | `${string}.mts` | `${string}.tsx`]: PresetContent<Record<string, any>>

defines ES module content including JS, JSX, TS, and TSX formats

[file: string]: string | JsonObject | string[] | PresetContentGenerator<string[]> | PresetContentGenerator<JsonObject> | Record<string, any> | PresetContentGenerator<Record<string, any>> | PresetContentGenerator<string> | null | undefined

defines other file contents, including file path, arrays, JSON objects, or arbitrary records