ParentFull threadrideg·You can use type guards for something similar: https://www.typescriptlang.org/docs/handbook/advanced-types....View on HN