Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Easy enough: if this code is only ever going to be used in a browser, just add it to the Window object: export default class AutoComplete { // ... }; window.AutoComplete = AutoComplete; You c...
Answer
#1: Initial revision
Easy enough: if this code is only ever going to be used in a browser, just add it to the Window object: ```typescript export default class AutoComplete { // ... }; window.AutoComplete = AutoComplete; ``` You can also do this from a general/index file by just importing `AutoComplete` and then adding it to `window`.