Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 393 Bytes
import * as declare from 'dojo/_base/declare';
/**
* A decorator that converts a TypeScript class into a declare constructor.
* This allows declare constructors to be defined as classes, which nicely
* hides away the `declare([], {})` boilerplate.
*/
export default function (... mixins: Object[]) {
return function (target: Function) {
return declare(mixins, target.prototype);
};
}