Skip to content

Does this library support class method? #33

Description

@Sol-cito

Hi. Thanks for this great library.

I've been using it for my side project, and encountered a problem.

My class looks like:

export class MyClass {
  id:number;
  public method(){};
}

I created a class instance by using builder as below:

const myClass: MyClass =
  Builder<MyClass>()
        .id(1)
        .build();

I expected the instance would have the class method but the object does not have any method.

Does build method only support field properties, not the method?

Regards,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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