When running the JS in a web browser or unittests there are no projections so one has to write mocks. for classes and enums It is easier if the .d.ts contains the enum values so one can copy and paste the definition to the mocks instead of cross referencing the IDL files during manual authoring.
When running the JS in a web browser or unittests there are no projections so one has to write mocks. for classes and enums It is easier if the .d.ts contains the enum values so one can copy and paste the definition to the mocks instead of cross referencing the IDL files during manual authoring.