Skip to content

Typescript client toJSON() and init() methods - make them optional or remove? #4044

Answered by lahma
terrencejames-lf asked this question in Q&A
Discussion options

You must be logged in to vote

you should be able to initialize like this:

const dummy = new Entry({
  id: 10,
  name: "Dummy"
});

Entry accepts the interface contract as constructor parameter.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by terrencejames-lf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4043 on June 10, 2022 09:14.