@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250714162043 → 13.346.0-beta.20250715050329

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,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.20250714162043",
4
+ "version": "13.346.0-beta.20250715050329",
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,11 +172,18 @@
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
- "index.d.mts",
181
- "index-lenient.d.mts",
182
187
  "src",
183
188
  "tsconfig.base.json",
184
189
  "tsconfig.json"
@@ -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, T> = {
288
- [K in keyof O]: _KeyOfType<O[K], K, T>;
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
  }