extended property not autocompleting in vscode
i use esm and when i extend
container.db = new Database()
, the autocomplete not showing and always underlining in red color the db
property.1 Reply
Because the type doesn't contain db, you just modified the object but not the type so it doesn't know it's supposed to be there. Look at the Typescript example on the container extending guide: