A
A
andrewayder2021-11-28 13:40:45
typescript
andrewayder, 2021-11-28 13:40:45

How to fix Property 'main' does not exist on type 'Object'.?

Hi I do this

const bus = new Object();
bus.main = new Object();
bus.main.vue = new Object();

but I get
Property 'main' does not exist on type 'Object'.
How can I correctly describe this in typeScript?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question