Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Model is not declared in survey.react.d.ts #2205

Closed
tsv2013 opened this issue Jun 4, 2020 · 0 comments
Closed

The Model is not declared in survey.react.d.ts #2205

tsv2013 opened this issue Jun 4, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@tsv2013
Copy link
Member

tsv2013 commented Jun 4, 2020

Model in a react app should be created as

var model = new Survey.Model(json);

But now this is impossible because of the "Model" name is not mentioned in typings.

As a workaround this can be used:

var model = new Survey["Model"](json);

See this thread for more details - surveyjs/surveyjs_react_quickstart#19

@tsv2013 tsv2013 added the bug label Jun 4, 2020
@tsv2013 tsv2013 self-assigned this Jun 4, 2020
@tsv2013 tsv2013 closed this as completed in 4f1be6c Jun 4, 2020
@tsv2013 tsv2013 added the fixed label Jun 4, 2020
@tsv2013 tsv2013 added this to the v1.7.11 milestone Jun 4, 2020
OlgaLarina added a commit that referenced this issue Jan 13, 2022
tsv2013 pushed a commit that referenced this issue Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant