1
>
/*---------------------------------------------------------------------------------------------
decorators.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
function createDecorator(mapFn: (fn: Function, key: string) => Function): MethodDecorator {
7
return (_target: Object, key: string | symbol, descriptor: TypedPropertyDescriptor<any>) => {