Checks TypeScript referenced variables and fields to be valid ones.