arktype
arktype copied to clipboard
Investigate symbols for metadata
E.g. could be used as a way to indicate that the keys of an object are exact inline:
import { exact } from "arktype";
const t = type({
[exact]: "true",
});
Instead of using the separate metadata object?
It would be an alternate syntax for adding metadata to object types. There would still be a standard tuple expression/chained syntax as well.