getEntity()function
Split an optional entity tag like challenge:a1b2c3 into its type and id, or return EmptyEntity if the entity was invalid.
getEntity(entity: Entity<T>): [type: T, id: string]
getEntity(entity: Nullish<Entity<T>>): [type: T, id: string] | EmptyEntity
getEntity(entity: Nullish<string>): [type: string, id: string] | EmptyEntity