Hi, Iām currently trying to access a specific component on an newly spawned gameObject (IGameObject). getComponent is not availible, neither is a gameObject object. Iām sure there is an easy way, but I canāt figure out how to do it 

Original Post on Discord
by user 474974683163394049
Why is it not available? Maybe just vscode? You can also use the static method on GameObject
VSCode tells me: āProperty āgetComponentā does not exist on type āIGameObjectā.ā
by user 474974683163394049
Ahhh, my bad. Itās too obvious 
this.renderer = GameObject.getComponent(cubeElement, Renderer);
by user 474974683163394049
Itās again me brain vs. not using Unity C# while working with Unity 
by user 474974683163394049
VSCode was kind of right: the interface was missing the methods (even tho they did exist on the object) - added them now so itāll not error in the next version anymore