ember-command / ember-command / command
Function: command()
Call Signature
ts
function command(...commandables): CommandInstance;Parameters
| Parameter | Type |
|---|---|
...commandables | Commandable[] |
Returns
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
| Parameter | Type |
|---|---|
prototype | NonInstanceType<Prototype> |
key | DecoratorKey<Key> |
descriptor? | DecoratorPropertyDescriptor |
Returns
void