@tsonic/globals 0.3.1 → 0.3.3

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/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/System";
15
+ import { String$instance, Double$instance, Boolean$instance } from "@tsonic/dotnet/System.js";
16
16
 
17
17
  declare global {
18
18
  /**
@@ -37,9 +37,17 @@ declare global {
37
37
  */
38
38
  interface String extends String$instance {}
39
39
 
40
- interface Number {}
40
+ /**
41
+ * Number - augmented with BCL methods from System.Double
42
+ * All System.Double instance methods are available on number primitives.
43
+ */
44
+ interface Number extends Double$instance {}
41
45
 
42
- interface Boolean {}
46
+ /**
47
+ * Boolean - augmented with BCL methods from System.Boolean
48
+ * All System.Boolean instance methods are available on boolean primitives.
49
+ */
50
+ interface Boolean extends Boolean$instance {}
43
51
 
44
52
  /**
45
53
  * Object - minimal base definition
package/package.json CHANGED
@@ -1,18 +1,14 @@
1
1
  {
2
2
  "name": "@tsonic/globals",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Global type definitions for Tsonic with BCL primitive methods",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
7
- "files": [
8
- "index.d.ts",
9
- "README.md"
10
- ],
11
7
  "scripts": {
12
8
  "typecheck": "tsc --noEmit"
13
9
  },
14
10
  "dependencies": {
15
- "@tsonic/dotnet": "^0.7.7"
11
+ "@tsonic/dotnet": "^0.7.9"
16
12
  },
17
13
  "devDependencies": {
18
14
  "typescript": "^5.0.0"
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "ES2020",
5
+ "moduleResolution": "node",
6
+ "strict": true,
7
+ "noEmit": true,
8
+ "skipLibCheck": true
9
+ },
10
+ "include": ["index.d.ts"]
11
+ }