Skip to content

Commit 2b86e83

Browse files
docs: document current stance on async morphs (#1302)
1 parent 632396f commit 2b86e83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ark/docs/content/docs/faq.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ title: FAQ
77
This can occur due to incompatibilities between your `tsconfig.json` and ours. It is totally harmless as long as your types are correct in source.
88

99
We highly recommend enabling [`skipLibCheck`](https://www.typescriptlang.org/tsconfig/#skipLibCheck) in every TypeScript project to avoid false negatives like this and greatly improve editor performance.
10+
11+
### Is there a way to create an async morph?
12+
13+
Other than handling it as a promise on the output object, no.
14+
15+
Something I've thought a bit about but it seems it would add a huge amount of complexity to the type system for somewhat marginal benefit? Would be interested in use cases where it feels really impactful though and somewhat open to reconsidering in the long term.
16+
17+
If you have a compelling enough use case, let us know on [Discord](https://arktype.io/discord) or [GitHub](https://github.com/arktypeio/arktype)

0 commit comments

Comments
 (0)