Implemented RenderContext in Typescript.