tkqubo/conditional-decorator

View on GitHub
src/conditional.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function conditional has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function conditional(test: any, decorator: Function): any {
  'use strict';
  return function (target: Object, key: string|symbol, value: any): any {
    if (utils.isClassDecorator(decorator, arguments)) {
      let clazz: Function = target as Function;
Severity: Minor
Found in src/conditional.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status