MethodNameOf<T>
@hyperledger/identus-sdk v8.0.0
@hyperledger/identus-sdk / overview / MethodNameOf
Type Alias: MethodNameOf<T>
MethodNameOf<
T> =Textends {method: infer N; } ?Nextendsstring?N:never:never
Defined in: packages/lib/sdk/src/castor/methods/types.ts:74
Extract the literal method name from a DID method instance type.
Falls back to string when the method field is not a string literal.
Type Parameters
| Type Parameter |
|---|
T |