Skip to content

exclude functions type from builder setter#28

Open
KhalitovAdel wants to merge 1 commit intoVincent-Pang:masterfrom
KhalitovAdel:hotfix/excludeFunctions
Open

exclude functions type from builder setter#28
KhalitovAdel wants to merge 1 commit intoVincent-Pang:masterfrom
KhalitovAdel:hotfix/excludeFunctions

Conversation

@KhalitovAdel
Copy link
Copy Markdown

@KhalitovAdel KhalitovAdel commented May 20, 2023

class Test {
  property!: number;
  method(v: number) {
    return null;
  }
}

//before
Builder(Test).property(1).method(() => null).build(); // ok

// after
Builder(Test).property(1).build(); // we don't have method in builder type

@KhalitovAdel KhalitovAdel force-pushed the hotfix/excludeFunctions branch from 28e09b1 to a39e4b6 Compare May 20, 2023 23:11
@KhalitovAdel KhalitovAdel changed the title fix: exlude functions type from builder properties exclude functions type from builder setter May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant