Skip to content

Commit

Permalink
Merge pull request #188 from jiho-kr/feature/override-deprecated
Browse files Browse the repository at this point in the history
deprecated Override decorator
  • Loading branch information
jiho-kr authored Jun 28, 2023
2 parents c84072a + f9a40ad commit 113a23e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/override.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { OVERRIDE_METHOD_METADATA } from './constants';
import { Method } from './interface';

/**
* Override which was an experimental feature, is no longer supported.
* @param name
* @returns
* @deprecated
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
export const Override = (name: keyof typeof Method) => (target: any, key: string, descriptor: PropertyDescriptor) => {
Reflect.defineMetadata(OVERRIDE_METHOD_METADATA, name, target[key]);
Expand Down

0 comments on commit 113a23e

Please sign in to comment.