Question T13657
Visible to All Users

ClearFilesEvent - where can I find this type

created 2 years ago

Can I get the following by installing an npm module?

Code
import type { ClearFilesEvent, UploadFilesEvent } from 'survey-events-api';

Right now, I had to import survey-events-api.d.ts into my project.

Answers approved by surveyjs Support

created 2 years ago

Hello Marshall,
The code should be the following:

JavaScript
import { ClearFilesEvent, UploadFilesEvent } from 'survey-core';

Unfortunately it will work from the next version that we will release tomorrow/after tomorrow.
We forgot to add export for all these event interfaces. We have added them several days ago.

Thank you,
Andrew
SurveyJS Team

    Comments (2)
    MT MT
    Marshall Thompson 2 years ago

      Awesome, thank you!

        You're always welcome. Please feel free to contact us if you have any questions.