Skip to content

license? #6

@GitNao

Description

@GitNao

I want to add a function.
and more.

ex

  public cnv<T>(source: any): T {
    let obj: T = {} as T;
    Object.getOwnPropertyNames(source).forEach(propertyKey => {
      const designType = Reflect.getMetadata('design:type', this, propertyKey);
      const customType = Reflect.getMetadata('custom:type', this, propertyKey);
      const type = customType !== undefined ? customType : designType;
      obj[propertyKey] = this.convert(source[propertyKey], propertyKey, type, 0);
    });

    return obj;
  }

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