TypeScript: Property does not exist on type ‘{}’ December 10, 2022 by Tarik You can assign the any type to the object: let bar: any = {}; bar.foo = "foobar";