arktypea
arktype2y ago
Micha

How to specify a property of type function?

In Typescript I have defined it like this:
type User = {
  accounts: accounts?: (() => Promise<Account>)[];
}


But how to achieve the same in Arktype?

PS: Are there any soon plans to extend the Website with more examples? (e.g. the keyword page to explain how they need to be used e.g. Function ) I experience it as quite hard to find answers through the discord search.
Was this page helpful?