typescript type guard without function