@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
16 lines (11 loc) • 360 B
text/typescript
/**
* Copyright (c) 2018 Chan Zewail
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
import { MULTITON, SINGLETON } from '../symbol';
export const Singleton: ClassDecorator = function (target: any) {
Reflect.defineMetadata(MULTITON, false, target);
Reflect.defineMetadata(SINGLETON, true, target);
};