ember-useful-decorators
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ember-useful-decorators

A collection of useful decorators concerning functionality that is specific to Ember.

Compatibility

  • Ember.js v4.8 or above
  • Ember CLI v4.8 or above
  • Node.js v18 or above

Installation

ember install ember-useful-decorators

Usage

Each decorator is described below:

Runloop functions

@once

Invoke the decorated function with once

@scheduleOnce(queue)

Invoke the decorated function with scheduleOnce, against the given queue queue.

@next

Invoke the decorated function with next

@run

Invoke the decorated function with run

Caching

@memoizeByOutput(equalityFunc?: (a: any, b: any) => boolean)

Cache output values to avoid excessive dirtying of complex return values (e.g. objects). equalityFunc defaults to a shallow object comparison function if not provided.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Dependencies (3)

Dev Dependencies (67)

Package Sidebar

Install

npm i ember-useful-decorators

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

16.4 kB

Total Files

19

Last publish

Collaborators

  • mwhitworth