UNPKG

@manuth/generator-wsc-package

Version:

A Generator for WoltLab Suite Core Packages.

33 lines (32 loc) 1.46 kB
/// <reference types="yeoman-generator" /> import { GeneratorOptions } from "@manuth/extended-yo-generator"; import { ObjectLiteralExpression } from "ts-morph"; import { LocalInstructionComponent } from "../Components/LocalInstructionComponent.js"; import { IFileUploadComponentOptions } from "../Settings/IFileUploadComponentOptions.js"; import { IWoltLabSettings } from "../Settings/IWoltLabSettings.js"; import { LocalFileInstructionMapping } from "./LocalFileInstructionMapping.js"; /** * Provides the functionality to generate instruction-files for file-upload instructions. * * @template TSettings * The type of the generator-settings. * * @template TOptions * The type of the generator-options. * * @template TComponentOptions * The type of the component-options. */ export declare class FileUploadMapping<TSettings extends IWoltLabSettings, TOptions extends GeneratorOptions, TComponentOptions extends IFileUploadComponentOptions> extends LocalFileInstructionMapping<TSettings, TOptions, TComponentOptions> { /** * Initializes a new instance of the {@link FileUploadMapping `FileUploadMapping<TSettings, TOptions, TComponentOptions>`} class. * * @param component * The component to create an instruction-file for. */ constructor(component: LocalInstructionComponent<TSettings, TOptions, TComponentOptions>); /** * @inheritdoc */ protected get InstructionOptions(): ObjectLiteralExpression; }