@typescript-package/name
Version:
A lightweight TypeScript library for the name with prefix and suffix.
49 lines (48 loc) • 1.07 kB
TypeScript
/**
* @description
* @export
* @abstract
* @class CommonName
*/
export declare abstract class CommonName {
#private;
/**
* @description
* @public
* @readonly
* @type {string}
*/
get prefix(): string;
/**
* @description
* @public
* @readonly
* @type {string}
*/
get suffix(): string;
/**
* Creates an instance of child class.
* @constructor
* @param {{ prefix?: string, suffix?: string }} [param0={}]
* @param {string} param0.prefix
* @param {string} param0.suffix
*/
constructor({ prefix, suffix }?: {
prefix?: string;
suffix?: string;
});
/**
* @description Set prefix for the name.
* @public
* @param {string} prefix A `string` type value as prefix.
* @returns {this}
*/
setPrefix(prefix: string): this;
/**
* @description Sets suffix for the name.
* @public
* @param {string} suffix A `string` type value as suffix.
* @returns {this}
*/
setSuffix(suffix: string): this;
}