@kanjijs/contracts 0.2.0-beta.17 → 0.2.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -44,3 +44,10 @@ export interface ValidatorAdapter<S = SchemaLike> {
|
|
|
44
44
|
): Promise<{ success: true; data: O } | { success: false; issues: unknown[] }>;
|
|
45
45
|
}
|
|
46
46
|
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Strict Type Exports
|
|
50
|
+
|
|
51
|
+
This package now exports explicitly typed helpers (`Contract`, `ContractSpec`) that are fully compatible with `strict: true` TS configurations, resolving previous issues with missing declaration files.
|
|
52
|
+
|
|
53
|
+
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanjijs/contracts",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "bun build src/index.ts --outdir dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@kanjijs/common": "^0.2.0-beta.
|
|
16
|
+
"@kanjijs/common": "^0.2.0-beta.19"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"zod": "^3.0.0"
|