@manuth/generator-wsc-package
Version:
A Generator for WoltLab Suite Core Packages.
35 lines (34 loc) • 1.31 kB
TypeScript
/// <reference types="yeoman-generator" />
import { GeneratorOptions } from "@manuth/extended-yo-generator";
import { CodeWorkspaceComponent, ITSProjectSettings, TSProjectSettingsProcessor } from "@manuth/generator-ts-project";
/**
* Provides the functionality to process settings for {@link WoltLabGenerator `WoltLabGenerator<TSettings, TOptions>`}s.
*
* @template TSettings
* The type of the settings of the generator.
*
* @template TOptions
* The type of the options of the generator.
*/
export declare class WoltLabSettingsProcessor<TSettings extends ITSProjectSettings, TOptions extends GeneratorOptions> extends TSProjectSettingsProcessor<TSettings, TOptions> {
/**
* Initializes a new instance of the {@link WoltLabSettingsProcessor `WoltLabSettingsProcessor<TSettings, TOptions>`} class.
*
* @param component
* The component of the processor.
*/
constructor(component: CodeWorkspaceComponent<TSettings, TOptions>);
/**
* @inheritdoc
*
* @param key
* The key of the setting.
*
* @param value
* The value of the setting to filter.
*
* @returns
* A value indicating whether the setting with the specified key should be included.
*/
protected FilterSetting(key: string, value: any): Promise<boolean>;
}