Skip to content

ember-command / ember-command / command

Function: command()

Call Signature

ts
function command(...commandables): CommandInstance;

Parameters

ParameterType
...commandablesCommandable[]

Returns

CommandInstance

Call Signature

ts
function command<Prototype, Key>(
   prototype, 
   key, 
   descriptor?): void;

The @use decorator can be used to use a Resource in javascript classes

js
import { command } from 'ember-resources';

class MyC {
  @command data = Clock;
}

Type Parameters

Type Parameter
Prototype
Key

Parameters

ParameterType
prototypeNonInstanceType<Prototype>
keyDecoratorKey<Key>
descriptor?DecoratorPropertyDescriptor

Returns

void