shuding/legid

feature request: sync API

Open

#2 geöffnet am 16. Aug. 2025

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (4 Forks)user submission
enhancementhelp wanted

Repository-Metriken

Stars
 (409 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I like the idea of this library, and I tried using it for a toy app; the challenge I have is that it would be extremely natural to use createId in class constructors, but these cannot be async and using createId(..).then(...) results in type warnings since the result cannot be definitively assigned.

I see you are building the key functionality on top of crypto.subtle and I imagine its not easy to find a work-around. Also, usually I am happy to use async APIs, but in this case its challenging.

Contributor Guide