mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
604 B
Plaintext
15 lines
604 B
Plaintext
main.js(6,9): error TS7022: 'buzz' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
|
|
|
|
|
==== main.js (1 errors) ====
|
|
export class C {
|
|
method() {
|
|
const obj = {};
|
|
obj.foo = 'foo';
|
|
obj.bar = 'bar';
|
|
obj.buzz = Object.values(obj);
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS7022: 'buzz' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
|
}
|
|
}
|
|
|