Skip to content

Can't work out the Typescript syntax for an empty array #357

Answered by jaclarke
andrewpatto asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use e.literal like this:

e.literal(e.array(e.str), []);

Docs: https://www.edgedb.com/docs/clients/01_js/types#custom-literals

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewpatto
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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