Skip to content

@waylis/core


@waylis/core / createCommand

Function: createCommand()

ts
function createCommand(params: Command): Command;

Defined in: src/scene/command.ts:26

Create a new Command object.

This function is a simple factory for creating Command instances, ensuring the object matches the expected interface and restrictions.

Parameters

params

Command

The parameters for the command.

Returns

Command

The newly created Command object.

Released under the MIT License.