Open ashneverdawn opened 4 months ago
Given that MultiPass::get_identity
is now returns a stream, we could probably convert the exported function to return an asynciter for the stream side (by default) and have a separate function for a single identity. See https://github.com/Satellite-im/Warp/pull/554
When
MultiPassBox.get_identity(...)
is exported to typescript, the return type isPromise<any>
We wantany
to be typed. (In rust it's aVec<Identity>
).Furthermore, consider splitting
.get_identity(...)
into separate functions for it's variants (DID
,DIDList
,Username
) so thatDID
andUsername
variants can return just anIdentity
instead of aVec<Identity>
with a single element.