@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250711091813 → 13.346.0-beta.20250715050200
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 +12 -5
- package/src/utils/index.d.mts +3 -4
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
3
3
|
"name": "@league-of-foundry-developers/foundry-vtt-types",
|
4
|
-
"version": "13.346.0-beta.
|
4
|
+
"version": "13.346.0-beta.20250715050200",
|
5
5
|
"description": "TypeScript type definitions for Foundry VTT",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./src/index.d.mts",
|
@@ -52,9 +52,7 @@
|
|
52
52
|
"test:watch": "vitest --typecheck",
|
53
53
|
"typecheck": "tsgo",
|
54
54
|
"typecheck:all": "tsgo --project tsconfig.all.json",
|
55
|
-
"prepare": "is-ci || husky"
|
56
|
-
"betterer": "betterer",
|
57
|
-
"betterer:update": "betterer --update"
|
55
|
+
"prepare": "is-ci || husky"
|
58
56
|
},
|
59
57
|
"repository": {
|
60
58
|
"type": "git",
|
@@ -174,7 +172,16 @@
|
|
174
172
|
"expect-type": "^1.2.2"
|
175
173
|
},
|
176
174
|
"peerDependencies": {
|
177
|
-
"typescript": "^5.4"
|
175
|
+
"typescript": "^5.4",
|
176
|
+
"@typescript/native-preview": "*"
|
177
|
+
},
|
178
|
+
"peerDependenciesMeta": {
|
179
|
+
"typescript": {
|
180
|
+
"optional": true
|
181
|
+
},
|
182
|
+
"@typescript/native-preview": {
|
183
|
+
"optional": true
|
184
|
+
}
|
178
185
|
},
|
179
186
|
"files": [
|
180
187
|
"index.d.mts",
|
package/src/utils/index.d.mts
CHANGED
@@ -284,12 +284,11 @@ export type MaybeEmpty<T extends AnyObject> =
|
|
284
284
|
/**
|
285
285
|
* The following uses `extends object` instead of `AnyObject` to allow `O = typeof SomeClass`
|
286
286
|
*/
|
287
|
-
export type PropertiesOfType<O extends object,
|
288
|
-
|
287
|
+
export type PropertiesOfType<O extends object, V> = {
|
288
|
+
// This type is not distributive to avoid `O[PropertiesOfType<O, V>]` not being assignable to `V`
|
289
|
+
[K in keyof O]: O[K] extends V ? K : never;
|
289
290
|
}[keyof O];
|
290
291
|
|
291
|
-
type _KeyOfType<V, K, T> = V extends T ? K : never;
|
292
|
-
|
293
292
|
declare class Branded<in out BrandName extends string> {
|
294
293
|
#brand: BrandName;
|
295
294
|
}
|