@manuth/generator-wsc-package
Version:
A Generator for WoltLab Suite Core Packages.
47 lines (46 loc) • 1.56 kB
TypeScript
/// <reference types="yeoman-generator" />
import { GeneratorOptions } from "@manuth/extended-yo-generator";
import { SourceFile } from "ts-morph";
import { WoltLabTypeScriptFileMapping } from "../../../FileMappings/WoltLabTypeScriptFileMapping.js";
import { IWoltLabSettings } from "../../../Settings/IWoltLabSettings.js";
import { WoltLabPackageGenerator } from "../../package/WoltLabPackageGenerator.js";
/**
* Provides the functionality to create an entry-point.
*
* @template TSettings
* The type of the settings of the generator.
*
* @template TOptions
* The type of the options of the generator.
*/
export declare class EntryPointFileMapping<TSettings extends IWoltLabSettings, TOptions extends GeneratorOptions> extends WoltLabTypeScriptFileMapping<TSettings, TOptions> {
/**
* The generator of the file-mapping.
*/
private packageGenerator;
/**
* Initializes a new instance of the {@link EntryPointFileMapping `EntryPointFileMapping`} class.
*
* @param generator
* The component to create an instruction-file for.
*/
constructor(generator: WoltLabPackageGenerator<TSettings, TOptions>);
/**
* @inheritdoc
*/
get Generator(): WoltLabPackageGenerator<TSettings, TOptions>;
/**
* @inheritdoc
*/
get Destination(): string;
/**
* @inheritdoc
*
* @param file
* The {@link SourceFile `SourceFile`} to transform.
*
* @returns
* The transformed file.
*/
protected Transform(file: SourceFile): Promise<SourceFile>;
}