Comparing version 1.0.1-alpha to 1.0.2-alpha
@@ -0,3 +1,3 @@ | ||
export declare const asConst: <t>(t: castWithExclusion<t, asConstRecurse<t>, []>) => castWithExclusion<t, asConstRecurse<t>, []>; | ||
export type asConst<t> = castWithExclusion<t, asConstRecurse<t>, []>; | ||
export declare const asConst: <t>(t: castWithExclusion<t, asConstRecurse<t>, []>) => castWithExclusion<t, asConstRecurse<t>, []>; | ||
type asConstRecurse<t> = { | ||
@@ -4,0 +4,0 @@ [k in keyof t]: t[k] extends Literalable | [] ? t[k] : asConstRecurse<t[k]>; |
{ | ||
"name": "arktype", | ||
"description": "The first isomorphic type system for TS/JS", | ||
"version": "1.0.1-alpha", | ||
"version": "1.0.2-alpha", | ||
"author": { | ||
@@ -15,9 +15,9 @@ "name": "David Blass", | ||
"type": "module", | ||
"main": "./dist/api.cjs", | ||
"types": "./dist/api.d.ts", | ||
"main": "./dist/cjs/main.js", | ||
"types": "./dist/types/main.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/api.d.ts", | ||
"import": "./dist/api.mjs", | ||
"require": "./dist/api.cjs" | ||
"types": "./dist/types/main.d.ts", | ||
"import": "./dist/mjs/main.js", | ||
"require": "./dist/cjs/main.js" | ||
}, | ||
@@ -24,0 +24,0 @@ "./internal/*": { |
@@ -26,3 +26,3 @@ <div align="center"> | ||
```ts @blockFrom:examples/type.ts | ||
import { type } from "arktype" | ||
import { type } from "../src/main.ts" | ||
@@ -60,3 +60,3 @@ // Define a type... | ||
```ts @blockFrom:examples/scope.ts | ||
import { scope } from "arktype" | ||
import { scope } from "../src/main.ts" | ||
@@ -63,0 +63,0 @@ // Scopes are collections of types that can reference each other. |
Sorry, the diff of this file is not supported yet
457434
10073