This should be `typeOf` here and in the example below.