@tsonic/globals-pure 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/index.d.ts +13 -3
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -12,7 +12,7 @@
12
12
  * For JS mode: Use with @tsonic/js-globals which extends base types with JS methods.
13
13
  */
14
14
 
15
- import { String$instance } from "@tsonic/dotnet-pure/System";
15
+ import { String$instance, Double$instance, Boolean$instance } from "@tsonic/dotnet-pure/System";
16
16
 
17
17
  declare global {
18
18
  /**
@@ -38,9 +38,19 @@ declare global {
38
38
  */
39
39
  interface String extends String$instance {}
40
40
 
41
- interface Number {}
41
+ /**
42
+ * Number - augmented with BCL methods from System.Double
43
+ * All System.Double instance methods are available on number primitives.
44
+ * Uses CLR PascalCase naming: ToString(), GetHashCode(), etc.
45
+ */
46
+ interface Number extends Double$instance {}
42
47
 
43
- interface Boolean {}
48
+ /**
49
+ * Boolean - augmented with BCL methods from System.Boolean
50
+ * All System.Boolean instance methods are available on boolean primitives.
51
+ * Uses CLR PascalCase naming: ToString(), GetHashCode(), etc.
52
+ */
53
+ interface Boolean extends Boolean$instance {}
44
54
 
45
55
  /**
46
56
  * Object - minimal base definition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/globals-pure",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Global type definitions for Tsonic with BCL primitive methods (CLR naming)",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "typecheck": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@tsonic/dotnet-pure": "^0.7.6"
15
+ "@tsonic/dotnet-pure": "^0.7.7"
16
16
  },
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.0"