Skip to content
Discussion options

You must be logged in to vote

I can work on exporting hat, but in the meantime you can use the ReturnType helper from TS to create a type alias:

type MaybeListable = Awaited<ReturnType<typeof tryWithConsolidated>>;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@manzt
Comment options

@ilan-gold
Comment options

Answer selected by ilan-gold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants