stable

Clone or download

Read-only

request #19294 : Prevent warning with type-only imports of Shortcut and ShortcutsGroup types

A warning is triggered when running `npm run watch` in plugins that use the Shortcut and ShortcutsGroup interfaces (Documents and TestManagement for now). This is caused by the import of type-only file `src/scripts/keyboard-navigation/type.ts`. The `import type` and `export type` TypeScript syntax prevents this issue : https://www.typescriptlang.org/docs/handbook/modules.html#importing-types Change-Id: Iea90bb7e6ff2b0ca96c89bd6cb0a7a5b84e58ef8

Modified Files

Name
M src/scripts/keyboard-navigation/add-shortcuts-group.ts +2 −2 Go to diff View file