레퍼런스
classes
ConverterComponent

@pikokr/command.ts / Exports / ConverterComponent

Class: ConverterComponent<T>

Type parameters

Name
T

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ConverterComponent<T>(options): ConverterComponent<T>

Type parameters

Name
T

Parameters

NameType
optionsArgumentConvertOptionsArg<T>

Returns

ConverterComponent<T>

Overrides

BaseComponent.constructor

Defined in

src/core/converter/index.ts:11 (opens in a new tab)

Properties

argTypes

argTypes: Collection<number, ComponentArgument>

Inherited from

BaseComponent.argTypes

Defined in

src/core/components/BaseComponent.ts:11 (opens in a new tab)


hooks

hooks: ComponentHookStore

Inherited from

BaseComponent.hooks

Defined in

src/core/components/BaseComponent.ts:9 (opens in a new tab)


method

method: AnyFunction

Inherited from

BaseComponent.method

Defined in

src/core/components/BaseComponent.ts:7 (opens in a new tab)


options

options: ArgumentConvertOptions<T>

Defined in

src/core/converter/index.ts:9 (opens in a new tab)

Methods

_init

_init(method, argTypes): void

Parameters

NameType
methodAnyFunction
argTypesunknown[]

Returns

void

Inherited from

BaseComponent._init

Defined in

src/core/components/BaseComponent.ts:13 (opens in a new tab)


execute

execute(target, args, beforeCallArgs?): Promise<unknown>

Parameters

NameTypeDefault value
targetobjectundefined
argsunknown[]undefined
beforeCallArgsunknown[]args

Returns

Promise<unknown>

Inherited from

BaseComponent.execute

Defined in

src/core/components/BaseComponent.ts:55 (opens in a new tab)


executeGlobalHook

executeGlobalHook(target, name, args): Promise<void>

Parameters

NameType
targetobject
namestring
argsunknown[]

Returns

Promise<void>

Inherited from

BaseComponent.executeGlobalHook

Defined in

src/core/components/BaseComponent.ts:21 (opens in a new tab)


executeHook

executeHook(target, name, args): Promise<void>

Parameters

NameType
targetobject
namestring
argsunknown[]

Returns

Promise<void>

Inherited from

BaseComponent.executeHook

Defined in

src/core/components/BaseComponent.ts:35 (opens in a new tab)