@salesforce/ts-types 2.0.9 → 2.0.10
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/LICENSE.txt +1 -1
- package/lib/types/collection.d.ts +4 -6
- package/lib/types/json.d.ts +1 -2
- package/package.json +18 -31
package/LICENSE.txt
CHANGED
|
@@ -8,17 +8,15 @@ import { Optional } from './union';
|
|
|
8
8
|
* and values, see the following functions: {@link definiteEntriesOf}, {@link definiteKeysOf}, and
|
|
9
9
|
* {@link definiteValuesOf}.
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type Dictionary<T = unknown> = {
|
|
12
12
|
[key: string]: Optional<T>;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
/**
|
|
15
15
|
* An alias for an array of `T` elements, where `T` defaults to `unknown`.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
}
|
|
17
|
+
export type AnyArray<T = unknown> = T[];
|
|
19
18
|
/**
|
|
20
19
|
* Any object with both a numeric index signature with values of type `T` and a numeric `length`
|
|
21
20
|
* property. `T` defaults to `unknown` if unspecified.
|
|
22
21
|
*/
|
|
23
|
-
export
|
|
24
|
-
}
|
|
22
|
+
export type AnyArrayLike<T = unknown> = ArrayLike<T>;
|
package/lib/types/json.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ts-types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Types and related utilities for TypeScript",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": "forcedotcom/ts-types",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"license": "BSD-3-Clause",
|
|
9
9
|
"types": "lib/index.d.ts",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=18.0.0"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"lib/**/*.js",
|
|
@@ -16,46 +16,23 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "wireit",
|
|
19
|
-
"ci-docs": "yarn sf-ci-docs",
|
|
20
19
|
"clean": "sf-clean",
|
|
21
20
|
"clean-all": "sf-clean all",
|
|
22
21
|
"compile": "wireit",
|
|
23
22
|
"docs": "sf-docs",
|
|
24
23
|
"format": "wireit",
|
|
24
|
+
"link-check": "wireit",
|
|
25
25
|
"lint": "wireit",
|
|
26
26
|
"prepack": "sf-prepack",
|
|
27
27
|
"prepare": "sf-install",
|
|
28
28
|
"test": "wireit",
|
|
29
29
|
"test:only": "wireit"
|
|
30
30
|
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"tslib": "^2.6.2"
|
|
33
|
-
},
|
|
31
|
+
"dependencies": {},
|
|
34
32
|
"devDependencies": {
|
|
35
|
-
"@salesforce/dev-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
39
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
40
|
-
"chai": "^4.3.10",
|
|
41
|
-
"eslint": "^8.51.0",
|
|
42
|
-
"eslint-config-prettier": "^8.10.0",
|
|
43
|
-
"eslint-config-salesforce": "^2.0.2",
|
|
44
|
-
"eslint-config-salesforce-license": "^0.2.0",
|
|
45
|
-
"eslint-config-salesforce-typescript": "^1.1.2",
|
|
46
|
-
"eslint-plugin-header": "^3.1.1",
|
|
47
|
-
"eslint-plugin-import": "2.28.1",
|
|
48
|
-
"eslint-plugin-jsdoc": "^43.2.0",
|
|
49
|
-
"eslint-plugin-prefer-arrow": "^1.2.1",
|
|
50
|
-
"husky": "^7.0.4",
|
|
51
|
-
"mocha": "^9.1.3",
|
|
52
|
-
"nyc": "^15.1.0",
|
|
53
|
-
"prettier": "^2.8.8",
|
|
54
|
-
"pretty-quick": "^3.1.0",
|
|
55
|
-
"sinon": "10.0.0",
|
|
56
|
-
"ts-node": "^10.0.0",
|
|
57
|
-
"typescript": "^4.9.5",
|
|
58
|
-
"wireit": "^0.14.0"
|
|
33
|
+
"@salesforce/dev-scripts": "^10.1.0",
|
|
34
|
+
"ts-node": "^10.9.2",
|
|
35
|
+
"typescript": "^5.4.5"
|
|
59
36
|
},
|
|
60
37
|
"wireit": {
|
|
61
38
|
"build": {
|
|
@@ -110,7 +87,8 @@
|
|
|
110
87
|
"test": {
|
|
111
88
|
"dependencies": [
|
|
112
89
|
"test:only",
|
|
113
|
-
"test:compile"
|
|
90
|
+
"test:compile",
|
|
91
|
+
"link-check"
|
|
114
92
|
]
|
|
115
93
|
},
|
|
116
94
|
"test:only": {
|
|
@@ -127,6 +105,15 @@
|
|
|
127
105
|
".nycrc"
|
|
128
106
|
],
|
|
129
107
|
"output": []
|
|
108
|
+
},
|
|
109
|
+
"link-check": {
|
|
110
|
+
"command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
|
|
111
|
+
"files": [
|
|
112
|
+
"./*.md",
|
|
113
|
+
"./!(CHANGELOG).md",
|
|
114
|
+
"messages/**/*.md"
|
|
115
|
+
],
|
|
116
|
+
"output": []
|
|
130
117
|
}
|
|
131
118
|
}
|
|
132
119
|
}
|