@types/gimloader 1.9.0 → 1.9.1
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.
- gimloader/README.md +1 -1
- gimloader/index.d.ts +24 -2
- gimloader/package.json +2 -2
gimloader/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for gimloader (https://github.com/Gimload
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gimloader.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Thu,
|
|
11
|
+
* Last updated: Thu, 13 Nov 2025 13:12:01 GMT
|
|
12
12
|
* Dependencies: [@dimforge/rapier2d-compat](https://npmjs.com/package/@dimforge/rapier2d-compat), [@types/react](https://npmjs.com/package/@types/react), [@types/react-dom](https://npmjs.com/package/@types/react-dom), [eventemitter2](https://npmjs.com/package/eventemitter2), [phaser](https://npmjs.com/package/phaser)
|
|
13
13
|
|
|
14
14
|
# Credits
|
gimloader/index.d.ts
CHANGED
|
@@ -2248,9 +2248,9 @@ declare global {
|
|
|
2248
2248
|
webpage: string | null;
|
|
2249
2249
|
needsLib: string[];
|
|
2250
2250
|
optionalLib: string[];
|
|
2251
|
-
syncEval: string;
|
|
2252
2251
|
deprecated: string | null;
|
|
2253
2252
|
gamemode: string[];
|
|
2253
|
+
changelog: string[];
|
|
2254
2254
|
hasSettings: string;
|
|
2255
2255
|
};
|
|
2256
2256
|
/** Gets the exported values of a plugin, if it has been enabled */
|
|
@@ -2281,9 +2281,9 @@ declare global {
|
|
|
2281
2281
|
webpage: string | null;
|
|
2282
2282
|
needsLib: string[];
|
|
2283
2283
|
optionalLib: string[];
|
|
2284
|
-
syncEval: string;
|
|
2285
2284
|
deprecated: string | null;
|
|
2286
2285
|
gamemode: string[];
|
|
2286
|
+
changelog: string[];
|
|
2287
2287
|
hasSettings: string;
|
|
2288
2288
|
};
|
|
2289
2289
|
/** Gets the exported values of a library */
|
|
@@ -2477,6 +2477,10 @@ declare global {
|
|
|
2477
2477
|
callback: (type: ConnectionType, gamemode: string) => void,
|
|
2478
2478
|
gamemode?: string | string[],
|
|
2479
2479
|
): () => void;
|
|
2480
|
+
/** Runs a callback when a request is made that matches a certain path (can have wildcards) */
|
|
2481
|
+
modifyFetchRequest(path: string, callback: (options: RequesterOptions) => any): () => void;
|
|
2482
|
+
/** Runs a callback when a response is recieved for a request under a certain path (can have wildcards) */
|
|
2483
|
+
modifyFetchResponse(path: string, callback: (response: any) => any): () => void;
|
|
2480
2484
|
}
|
|
2481
2485
|
|
|
2482
2486
|
type ConnectionType = "None" | "Colyseus" | "Blueboat";
|
|
@@ -2495,6 +2499,16 @@ declare global {
|
|
|
2495
2499
|
send(channel: string, message: any): void;
|
|
2496
2500
|
}
|
|
2497
2501
|
|
|
2502
|
+
interface RequesterOptions {
|
|
2503
|
+
url: string;
|
|
2504
|
+
method?: string;
|
|
2505
|
+
data?: any;
|
|
2506
|
+
cacheKey?: string;
|
|
2507
|
+
success?: (response: any, cached: boolean) => void;
|
|
2508
|
+
both?: () => void;
|
|
2509
|
+
error?: (error: any) => void;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2498
2512
|
interface NetApi extends BaseNetApi {
|
|
2499
2513
|
new(): this;
|
|
2500
2514
|
/**
|
|
@@ -2508,6 +2522,14 @@ declare global {
|
|
|
2508
2522
|
): () => void;
|
|
2509
2523
|
/** Cancels any calls to {@link onLoad} with the same id */
|
|
2510
2524
|
offLoad(id: string): void;
|
|
2525
|
+
/** Runs a callback when a request is made that matches a certain path (can have wildcards) */
|
|
2526
|
+
modifyFetchRequest(id: string, path: string, callback: (options: RequesterOptions) => any): () => void;
|
|
2527
|
+
/** Runs a callback when a response is recieved for a request under a certain path (can have wildcards) */
|
|
2528
|
+
modifyFetchResponse(id: string, path: string, callback: (response: any) => any): () => void;
|
|
2529
|
+
/** Stops any modifications made by {@link modifyFetchRequest} with the same id */
|
|
2530
|
+
stopModifyRequest(id: string): void;
|
|
2531
|
+
/** Stops any modifications made by {@link modifyFetchResponse} with the same id */
|
|
2532
|
+
stopModifyResponse(id: string): void;
|
|
2511
2533
|
/**
|
|
2512
2534
|
* @deprecated Methods for both transports are now on the base net api
|
|
2513
2535
|
* @hidden
|
gimloader/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/gimloader",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "TypeScript definitions for gimloader",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gimloader",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"eventemitter2": "~6.4.9"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {},
|
|
35
|
-
"typesPublisherContentHash": "
|
|
35
|
+
"typesPublisherContentHash": "4afe930213069b4124381dc798d078235746605f68835e02486279102b33a6ab",
|
|
36
36
|
"typeScriptVersion": "5.2"
|
|
37
37
|
}
|