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