Added docs for `typeOf` method