mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
All options
This commit is contained in:
@@ -214,6 +214,11 @@ export default function () {
|
||||
([path, name]) => `import * as ${name}ProcessorMeta from '${path}';`,
|
||||
),
|
||||
`interface Enableable { enabled: boolean; }`,
|
||||
`export interface ProcessorOptions {`,
|
||||
processorMetaTsNames.map(
|
||||
([_, name]) => ` ${name}: ${name}ProcessorMeta.Options;`,
|
||||
),
|
||||
`}`,
|
||||
`export interface ProcessorState {`,
|
||||
processorMetaTsNames.map(
|
||||
([_, name]) => ` ${name}: Enableable & ${name}ProcessorMeta.Options;`,
|
||||
|
||||
Reference in New Issue
Block a user