Skip to content

Conversation

@raith-nvm
Copy link

  • Fix issues with types.js, especially JSdoc markup, to allow generation of correct types.d.ts
  • Needs additional test coverage, or removal of AudioDevice class from types.js
  • Currently can only commit by overriding commit-hook (--no-verify)
  • Whilst these JSdoc changes suit the emitted ts-declarations I cannot vouch for their suitability for generating the docs!

raith-nvm added 17 commits July 2, 2025 11:53
We believe this should be 'ALWAYS_EXCEPT_WHEN_ON_HOLD'
But beware that this might break SF actual use of JSDoc :(
* revisit an earlier fix - Constants.AGENT_STATUS is wrong for setAgentStatus, but so is string! Make it simply AGENT_STATUS (which resolves to string anyway) but is a marker to fix it properly in phase 2
* regenerate types
Fix TS types phase 1
- Freeze Constants so that TS can generate suitable constants
- Add missing AudioDevice type to types.js (although it may be a redundant type in types.ts)
- Fix incorrect REMOVE_PARTICIPANT_VARIANT constant
- Fix incorrect JSdoc param / return definitions
- Standardize formatting
- Regenerate TS types (npm run tsd)
Fix TS types phase 2
- Fix JSdoc for publishEvent eventType values
- Fix JSdoc for Constant-typed params
- Regenerate TS types (npm run tsd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant