Type Alias PublicSecret<Asym>

PublicSecret: If<Asym, "public", "secret">

Pick "public" or "secret" based on whether the algorithm is asymmetric.

Type Parameters

  • Asym extends boolean