arktype icon indicating copy to clipboard operation
arktype copied to clipboard

TypeScript's 1:1 validator, optimized from editor to runtime

Results 100 arktype issues
Sort by recently updated
recently updated
newest added

# Request a feature ([Discord thread](https://discord.com/channels/957797212103016458/1203049498050433116) for context) Our codebase has large collections of objects that represent enum values mapping keys of concrete types (like `QualificationType` in my example below,...

We have implementations both inlined and pre-compiled for each node kind. This would expose a config option allowing users to opt-out of JIT precompilation. Once this is enabled, we should...

One thing I'm gonna miss once I migrate to Arktype with Zodios is the capability of converting the contract schema to JSON Schema for Swagger and automatically generate an OpenAPI...

You can reduce a union of two structures, neither of which is a subtype of the other, iff there exists some key K such that K is present in both...

This would allow a set of scopes/types to be precompiled to avoid JIT compilation at runtime. This requires additional investigation around possible targets (ts vs js build output) and tooling...

# Request a feature From TypeScript 3.7, [Assertion Function](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions) syntax is introduced. ```typescript declare function assertType(v: unknown): asserts v is T; declare const v: unknown; assertType(v); // now v is...

I had implemented part of this in beta but am delaying it until a future release. Here's some random context from what I had implemented: ```ts export type ArkErrorContextsByCode =...

I think it would be useful to have a comprehensive page comparing Zod, TypeBox, and ArkType, since they all are similar projects, i.e. creating run-time types. It would be nice...

# Request a feature being able to output zod schema will help arktype bootstrap into existing zod ecosystem. ### 🤷 Motivation while i love how concise arktype is, i am...

As part of the beta release, `arktype` was split into two packages: - `arktype`: The main entry point for type-safe TS syntax - `@arktype/schema`: The underlying schema representation and type...