@helios-lang/contract-utils 0.2.52 → 0.2.53

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/package.json CHANGED
@@ -1,44 +1,45 @@
1
1
  {
2
- "name": "@helios-lang/contract-utils",
3
- "version": "0.2.52",
4
- "description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
5
- "main": "src/index.js",
6
- "types": "types/index.d.ts",
7
- "type": "module",
8
- "bin": {
9
- "hl2ts": "src/hl2ts.js"
10
- },
11
- "author": "Christian Schmitz",
12
- "license": "BSD-3-Clause",
13
- "devDependencies": {
14
- "@types/node": "^20.11.24",
15
- "prettier": "^3.1.0",
16
- "typescript": "^5.3.2"
17
- },
18
- "prettier": {
19
- "trailingComma": "none",
20
- "tabWidth": 4,
21
- "semi": false,
22
- "singleQuote": false
23
- },
24
- "peerDependencies": {
25
- "@helios-lang/compiler": "*"
26
- },
27
- "dependencies": {
28
- "@helios-lang/cli-utils": "^0.1.6",
29
- "@helios-lang/codec-utils": "^0.1.34",
30
- "@helios-lang/compiler-utils": "^0.1.25",
31
- "@helios-lang/ledger": "^0.4.9",
32
- "@helios-lang/type-utils": "^0.1.21",
33
- "@helios-lang/uplc": "^0.3.5"
34
- },
35
- "scripts": {
36
- "build": "pnpm run prettify && pnpm run build:types && pnpm run test:suite",
37
- "build:types": "tsc -p jsconfig.json --noEmit false --emitDeclarationOnly",
38
- "prettify": "prettier . --write",
39
- "test": "pnpm run test:pretty && pnpm run test:types && pnpm run test:suite",
40
- "test:pretty": "prettier . --check",
41
- "test:suite": "node --test",
42
- "test:types": "pnpm run build:types"
43
- }
44
- }
2
+ "name": "@helios-lang/contract-utils",
3
+ "version": "0.2.53",
4
+ "description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
5
+ "main": "src/index.js",
6
+ "types": "types/index.d.ts",
7
+ "type": "module",
8
+ "bin": {
9
+ "hl2ts": "src/hl2ts.js"
10
+ },
11
+ "scripts": {
12
+ "build": "pnpm run prettify && pnpm run build:types && pnpm run test:suite",
13
+ "build:types": "tsc -p jsconfig.json --noEmit false --emitDeclarationOnly",
14
+ "prepack": "pnpm run build",
15
+ "prettify": "prettier . --write",
16
+ "test": "pnpm run test:pretty && pnpm run test:types && pnpm run test:suite",
17
+ "test:pretty": "prettier . --check",
18
+ "test:suite": "node --test",
19
+ "test:types": "pnpm run build:types"
20
+ },
21
+ "author": "Christian Schmitz",
22
+ "license": "BSD-3-Clause",
23
+ "devDependencies": {
24
+ "@types/node": "^20.11.24",
25
+ "prettier": "^3.1.0",
26
+ "typescript": "^5.3.2"
27
+ },
28
+ "prettier": {
29
+ "trailingComma": "none",
30
+ "tabWidth": 4,
31
+ "semi": false,
32
+ "singleQuote": false
33
+ },
34
+ "peerDependencies": {
35
+ "@helios-lang/compiler": "*"
36
+ },
37
+ "dependencies": {
38
+ "@helios-lang/cli-utils": "^0.1.6",
39
+ "@helios-lang/codec-utils": "^0.1.34",
40
+ "@helios-lang/compiler-utils": "^0.1.25",
41
+ "@helios-lang/ledger": "^0.4.10",
42
+ "@helios-lang/type-utils": "^0.1.21",
43
+ "@helios-lang/uplc": "^0.3.5"
44
+ }
45
+ }
package/src/cast/Cast.js CHANGED
@@ -60,7 +60,7 @@ import {
60
60
 
61
61
  /**
62
62
  * @template TStrict
63
- * @template TPermissive
63
+ * @template TPermissive=TStrict
64
64
  */
65
65
  export class Cast {
66
66
  /**
@@ -28,7 +28,7 @@ export function configureCast<TStrict, TPermissive>(cast: CastLike<TStrict, TPer
28
28
  */
29
29
  /**
30
30
  * @template TStrict
31
- * @template TPermissive
31
+ * @template TPermissive=TStrict
32
32
  */
33
33
  export class Cast<TStrict, TPermissive> {
34
34
  /**