Skip to content

Uncaught TypeError #1

@the-leonat

Description

@the-leonat

this is the class, where im using the decorator.
its part of an angular 2 app.

@Injectable()
export class PictogramCategoryResource implements ApiResource {
  endpoint: string = 'pictogram_category'
  idAttribute: string = 'id' // If not provided will use 'id'

  @CheckReturn() deserialize(data): PictogramCategory {
    return data;
  }

  serialize(data) {
    return data
  }
}

unknown typeerror in native Reflect Library

function getMetadata(metadataKey, target, targetKey) {
            if (!IsObject(target)) {
                throw new TypeError();
            }
            else if (!IsUndefined(targetKey)) {
                targetKey = ToPropertyKey(targetKey);
            }
            return OrdinaryGetMetadata(metadataKey, target, targetKey);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions