@r47onfire/backolon - v0.0.0
    Preparing search index...

    Function typecheck

    • Return a helper function that returns true if the given Thing is any of the given types.

      Type Parameters

      Parameters

      • ...types: T[]

      Returns (thing: Thing<any>) => thing is OneTypeThing<T>

      if (typecheck(ThingType.number, ThingType.string)(object)) {
      // inside this block, object is known to be
      // Thing<ThingType.number> | Thing<ThingType.string>
      }