iink-ts - v5.0.0
    Preparing search index...

    Function defineKind

    • Experimental

      Narrows a definition written against one concrete kind to the union its table is keyed on.

      The switches these tables replaced carried a cast per branch per method — twelve in ShapeUtil, twelve in EdgeUtil. Writing each entry against its own type collapses all of them into the one cast below, which is the only place a kind's type is asserted rather than checked.

      Type Parameters

      • TFamily
      • TKind

      Parameters

      Returns TKindDefinition<TFamily>