@types/gimloader 1.11.0 → 1.11.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 +323 -63
- 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:
|
|
11
|
+
* Last updated: Fri, 06 Mar 2026 21:41:31 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
|
@@ -2110,7 +2110,7 @@ declare global {
|
|
|
2110
2110
|
/** Should be a keyboardevent [code](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code) */
|
|
2111
2111
|
key?: string;
|
|
2112
2112
|
/** Should be keyboardevent [codes](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code) */
|
|
2113
|
-
keys?: string
|
|
2113
|
+
keys?: ReadonlyArray<string>;
|
|
2114
2114
|
ctrl?: boolean;
|
|
2115
2115
|
shift?: boolean;
|
|
2116
2116
|
alt?: boolean;
|
|
@@ -2260,6 +2260,193 @@ declare global {
|
|
|
2260
2260
|
both?: () => void;
|
|
2261
2261
|
error?: (error: any) => void;
|
|
2262
2262
|
}
|
|
2263
|
+
namespace Schema {
|
|
2264
|
+
type ObjectSchema<T extends object> = T & {
|
|
2265
|
+
listen<K extends keyof T>(
|
|
2266
|
+
key: K,
|
|
2267
|
+
callback: (value: T[K], lastValue: T[K]) => void,
|
|
2268
|
+
immediate?: boolean,
|
|
2269
|
+
): () => void;
|
|
2270
|
+
onChange(callback: () => void): () => void;
|
|
2271
|
+
};
|
|
2272
|
+
interface CollectionSchema<T, K> {
|
|
2273
|
+
onAdd(callback: (value: T, index: K) => void, immediate?: boolean): () => void;
|
|
2274
|
+
onRemove(callback: (value: T, index: K) => void): () => void;
|
|
2275
|
+
onChange(callback: (item: T, index: K) => void): () => void;
|
|
2276
|
+
}
|
|
2277
|
+
type MapSchema<T> =
|
|
2278
|
+
& {
|
|
2279
|
+
[key: string]: T;
|
|
2280
|
+
}
|
|
2281
|
+
& Map<string, T>
|
|
2282
|
+
& CollectionSchema<T, string>;
|
|
2283
|
+
type ArraySchema<T> = T[] & CollectionSchema<T, number>;
|
|
2284
|
+
interface AppearanceState {
|
|
2285
|
+
skin: string;
|
|
2286
|
+
tintModifierId: string;
|
|
2287
|
+
trailId: string;
|
|
2288
|
+
transparencyModifierId: string;
|
|
2289
|
+
}
|
|
2290
|
+
interface AssignmentState {
|
|
2291
|
+
hasSavedProgress: boolean;
|
|
2292
|
+
objective?: string;
|
|
2293
|
+
percentageComplete?: number;
|
|
2294
|
+
}
|
|
2295
|
+
interface ClassDesignerState {
|
|
2296
|
+
lastActivatedClassDeviceId: string;
|
|
2297
|
+
lastClassDeviceActivationId: number;
|
|
2298
|
+
}
|
|
2299
|
+
interface HealthState {
|
|
2300
|
+
classImmunityActive: boolean;
|
|
2301
|
+
fragility: number;
|
|
2302
|
+
lives: number;
|
|
2303
|
+
maxHealth: number;
|
|
2304
|
+
maxShield: number;
|
|
2305
|
+
shield: number;
|
|
2306
|
+
showHealthBar: boolean;
|
|
2307
|
+
spawnImmunityActive: boolean;
|
|
2308
|
+
}
|
|
2309
|
+
interface InteractiveSlotState {
|
|
2310
|
+
clipSize: number;
|
|
2311
|
+
count: number;
|
|
2312
|
+
currentClip: number;
|
|
2313
|
+
durability: number;
|
|
2314
|
+
itemId: string;
|
|
2315
|
+
waiting: boolean;
|
|
2316
|
+
waitingEndTime: number;
|
|
2317
|
+
waitingStartTime: number;
|
|
2318
|
+
}
|
|
2319
|
+
interface InventoryState {
|
|
2320
|
+
activeInteractiveSlot: number;
|
|
2321
|
+
infiniteAmmo: boolean;
|
|
2322
|
+
interactiveSlots: MapSchema<InteractiveSlotState>;
|
|
2323
|
+
interactiveSlotsOrder: ArraySchema<number>;
|
|
2324
|
+
}
|
|
2325
|
+
interface PermissionsState {
|
|
2326
|
+
adding: boolean;
|
|
2327
|
+
editing: boolean;
|
|
2328
|
+
manageCodeGrids: boolean;
|
|
2329
|
+
removing: boolean;
|
|
2330
|
+
}
|
|
2331
|
+
interface PhysicsState {
|
|
2332
|
+
isGrounded: boolean;
|
|
2333
|
+
}
|
|
2334
|
+
interface ProjectilesState {
|
|
2335
|
+
aimAngle: number;
|
|
2336
|
+
damageMultiplier: number;
|
|
2337
|
+
}
|
|
2338
|
+
interface XPState {
|
|
2339
|
+
unredeemedXP: number;
|
|
2340
|
+
}
|
|
2341
|
+
interface ZoneAbilitiesOverridesState {
|
|
2342
|
+
allowItemDrop: boolean;
|
|
2343
|
+
allowResourceDrop: boolean;
|
|
2344
|
+
allowWeaponDrop: boolean;
|
|
2345
|
+
allowWeaponFire: boolean;
|
|
2346
|
+
}
|
|
2347
|
+
interface CharacterState {
|
|
2348
|
+
appearance: ObjectSchema<AppearanceState>;
|
|
2349
|
+
assignment: ObjectSchema<AssignmentState>;
|
|
2350
|
+
classDesigner: ObjectSchema<ClassDesignerState>;
|
|
2351
|
+
completedInitialPlacement: boolean;
|
|
2352
|
+
health: ObjectSchema<HealthState>;
|
|
2353
|
+
id: string;
|
|
2354
|
+
inventory: ObjectSchema<InventoryState>;
|
|
2355
|
+
isActive: boolean;
|
|
2356
|
+
isRespawning: boolean;
|
|
2357
|
+
lastPlayersTeamId: string;
|
|
2358
|
+
movementSpeed: number;
|
|
2359
|
+
name: string;
|
|
2360
|
+
openDeviceUI: string;
|
|
2361
|
+
openDeviceUIChangeCounter: number;
|
|
2362
|
+
permissions: ObjectSchema<PermissionsState>;
|
|
2363
|
+
phase: boolean;
|
|
2364
|
+
physics: ObjectSchema<PhysicsState>;
|
|
2365
|
+
projectiles: ObjectSchema<ProjectilesState>;
|
|
2366
|
+
roleLevel: number;
|
|
2367
|
+
scale: number;
|
|
2368
|
+
score: number;
|
|
2369
|
+
teamId: string;
|
|
2370
|
+
teleportCount: number;
|
|
2371
|
+
type: string;
|
|
2372
|
+
x: number;
|
|
2373
|
+
xp: ObjectSchema<XPState>;
|
|
2374
|
+
y: number;
|
|
2375
|
+
zoneAbilitiesOverrides: ObjectSchema<ZoneAbilitiesOverridesState>;
|
|
2376
|
+
}
|
|
2377
|
+
interface ActionCategoryState {
|
|
2378
|
+
id: string;
|
|
2379
|
+
name: string;
|
|
2380
|
+
plural: string;
|
|
2381
|
+
}
|
|
2382
|
+
interface ActionItemState {
|
|
2383
|
+
id: string;
|
|
2384
|
+
category: string;
|
|
2385
|
+
name: string;
|
|
2386
|
+
url: string;
|
|
2387
|
+
}
|
|
2388
|
+
interface CallToActionState {
|
|
2389
|
+
categories: ArraySchema<ActionCategoryState>;
|
|
2390
|
+
items: ArraySchema<ActionItemState>;
|
|
2391
|
+
}
|
|
2392
|
+
interface GameSessionState {
|
|
2393
|
+
callToAction: ObjectSchema<CallToActionState>;
|
|
2394
|
+
countdownEnd: number;
|
|
2395
|
+
phase: string;
|
|
2396
|
+
resultsEnd: number;
|
|
2397
|
+
}
|
|
2398
|
+
interface SessionState {
|
|
2399
|
+
allowGoogleTranslate: boolean;
|
|
2400
|
+
cosmosBlocked: boolean;
|
|
2401
|
+
gameOwnerId: string;
|
|
2402
|
+
gameSession: ObjectSchema<GameSessionState>;
|
|
2403
|
+
gameTime: number;
|
|
2404
|
+
globalPermissions: ObjectSchema<PermissionsState>;
|
|
2405
|
+
loadingPhase: boolean;
|
|
2406
|
+
mapCreatorRoleLevel: number;
|
|
2407
|
+
mapStyle: string;
|
|
2408
|
+
modeType: string;
|
|
2409
|
+
phase: string;
|
|
2410
|
+
version: string;
|
|
2411
|
+
}
|
|
2412
|
+
interface DevicesState {
|
|
2413
|
+
codeGrids: MapSchema<any>;
|
|
2414
|
+
}
|
|
2415
|
+
interface WorldState {
|
|
2416
|
+
devices: ObjectSchema<DevicesState>;
|
|
2417
|
+
height: number;
|
|
2418
|
+
width: number;
|
|
2419
|
+
}
|
|
2420
|
+
interface CustomAssetState {
|
|
2421
|
+
data: string;
|
|
2422
|
+
icon: string;
|
|
2423
|
+
id: string;
|
|
2424
|
+
name: string;
|
|
2425
|
+
optionId: string;
|
|
2426
|
+
}
|
|
2427
|
+
interface HooksState {
|
|
2428
|
+
hookJSON: string;
|
|
2429
|
+
}
|
|
2430
|
+
interface MatchmakerState {
|
|
2431
|
+
gameCode: string;
|
|
2432
|
+
}
|
|
2433
|
+
interface TeamState {
|
|
2434
|
+
characters: ArraySchema<string>;
|
|
2435
|
+
id: string;
|
|
2436
|
+
name: string;
|
|
2437
|
+
score: number;
|
|
2438
|
+
}
|
|
2439
|
+
interface GimkitState {
|
|
2440
|
+
characters: MapSchema<CharacterState>;
|
|
2441
|
+
customAssets: MapSchema<CustomAssetState>;
|
|
2442
|
+
hooks: ObjectSchema<HooksState>;
|
|
2443
|
+
mapSettings: string;
|
|
2444
|
+
matchmaker: ObjectSchema<MatchmakerState>;
|
|
2445
|
+
session: ObjectSchema<SessionState>;
|
|
2446
|
+
teams: ArraySchema<TeamState>;
|
|
2447
|
+
world: ObjectSchema<WorldState>;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2263
2450
|
class BaseNetApi extends EventEmitter2 {
|
|
2264
2451
|
constructor();
|
|
2265
2452
|
/** Which type of server the client is currently connected to */
|
|
@@ -2268,6 +2455,8 @@ declare global {
|
|
|
2268
2455
|
get gamemode(): string;
|
|
2269
2456
|
/** The room that the client is connected to, or null if there is no connection */
|
|
2270
2457
|
get room(): any;
|
|
2458
|
+
/** Gimkit's internal Colyseus state */
|
|
2459
|
+
get state(): Schema.GimkitState;
|
|
2271
2460
|
/** Whether the user is the one hosting the current game */
|
|
2272
2461
|
get isHost(): boolean;
|
|
2273
2462
|
/** Sends a message to the server on a specific channel */
|
|
@@ -2282,7 +2471,7 @@ declare global {
|
|
|
2282
2471
|
onLoad(
|
|
2283
2472
|
id: string,
|
|
2284
2473
|
callback: (type: ConnectionType, gamemode: string) => void,
|
|
2285
|
-
gamemode?: string | string
|
|
2474
|
+
gamemode?: string | ReadonlyArray<string>,
|
|
2286
2475
|
): () => void;
|
|
2287
2476
|
/** Cancels any calls to {@link onLoad} with the same id */
|
|
2288
2477
|
offLoad(id: string): void;
|
|
@@ -2326,7 +2515,7 @@ declare global {
|
|
|
2326
2515
|
*/
|
|
2327
2516
|
onLoad(
|
|
2328
2517
|
callback: (type: ConnectionType, gamemode: string) => void,
|
|
2329
|
-
gamemode?: string | string
|
|
2518
|
+
gamemode?: string | ReadonlyArray<string>,
|
|
2330
2519
|
): () => void;
|
|
2331
2520
|
/** Runs a callback when a request is made that matches a certain path (can have wildcards) */
|
|
2332
2521
|
modifyFetchRequest(path: string, callback: (options: RequesterOptions) => any): () => void;
|
|
@@ -2346,7 +2535,7 @@ declare global {
|
|
|
2346
2535
|
style?: string;
|
|
2347
2536
|
className?: string;
|
|
2348
2537
|
closeOnBackgroundClick?: boolean;
|
|
2349
|
-
buttons?: ModalButton
|
|
2538
|
+
buttons?: ReadonlyArray<ModalButton>;
|
|
2350
2539
|
onClosed?: () => void;
|
|
2351
2540
|
}
|
|
2352
2541
|
type NoticeType = "info" | "success" | "error" | "warning" | "loading";
|
|
@@ -2741,30 +2930,56 @@ declare global {
|
|
|
2741
2930
|
/** Adds a listener for when a stored value with a certain key changes */
|
|
2742
2931
|
onChange(key: string, callback: ValueChangeCallback): () => void;
|
|
2743
2932
|
}
|
|
2933
|
+
type BaseFunction = (...args: any[]) => any;
|
|
2934
|
+
type FunctionKeys<T> = keyof {
|
|
2935
|
+
[K in keyof T as T[K] extends BaseFunction ? K : never]: T[K];
|
|
2936
|
+
};
|
|
2744
2937
|
|
|
2745
|
-
type PatcherAfterCallback = (
|
|
2938
|
+
type PatcherAfterCallback<T> = (
|
|
2939
|
+
thisVal: any,
|
|
2940
|
+
args: T extends BaseFunction ? Parameters<T> : any[],
|
|
2941
|
+
returnVal: T extends BaseFunction ? ReturnType<T> : any,
|
|
2942
|
+
) => any;
|
|
2746
2943
|
|
|
2747
|
-
|
|
2748
|
-
|
|
2944
|
+
type PatcherBeforeCallback<T> = (
|
|
2945
|
+
thisVal: any,
|
|
2946
|
+
args: T extends BaseFunction ? Parameters<T> : any[],
|
|
2947
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
2948
|
+
) => boolean | void;
|
|
2749
2949
|
|
|
2750
|
-
type PatcherInsteadCallback = (thisVal: any, args:
|
|
2950
|
+
type PatcherInsteadCallback<T> = (thisVal: any, args: T extends BaseFunction ? Parameters<T> : any[]) => any;
|
|
2751
2951
|
class PatcherApi {
|
|
2752
2952
|
/**
|
|
2753
2953
|
* Runs a callback after a function on an object has been run
|
|
2754
2954
|
* @returns A function to remove the patch
|
|
2755
2955
|
*/
|
|
2756
|
-
after
|
|
2956
|
+
after<O extends object, K extends FunctionKeys<O>>(
|
|
2957
|
+
id: string,
|
|
2958
|
+
object: O,
|
|
2959
|
+
method: K,
|
|
2960
|
+
callback: PatcherAfterCallback<O[K]>,
|
|
2961
|
+
): () => void;
|
|
2757
2962
|
/**
|
|
2758
2963
|
* Runs a callback before a function on an object has been run.
|
|
2759
2964
|
* Return true from the callback to prevent the function from running
|
|
2760
2965
|
* @returns A function to remove the patch
|
|
2761
2966
|
*/
|
|
2762
|
-
before
|
|
2967
|
+
before<O extends object, K extends FunctionKeys<O>>(
|
|
2968
|
+
id: string,
|
|
2969
|
+
object: O,
|
|
2970
|
+
method: K,
|
|
2971
|
+
callback: PatcherBeforeCallback<O[K]>,
|
|
2972
|
+
): () => void;
|
|
2763
2973
|
/**
|
|
2764
2974
|
* Runs a function instead of a function on an object
|
|
2765
2975
|
* @returns A function to remove the patch
|
|
2766
2976
|
*/
|
|
2767
|
-
instead
|
|
2977
|
+
instead<O extends object, K extends FunctionKeys<O>>(
|
|
2978
|
+
id: string,
|
|
2979
|
+
object: O,
|
|
2980
|
+
method: K,
|
|
2981
|
+
callback: PatcherInsteadCallback<O[K]>,
|
|
2982
|
+
): () => void;
|
|
2768
2983
|
/** Removes all patches with a given id */
|
|
2769
2984
|
unpatchAll(id: string): void;
|
|
2770
2985
|
}
|
|
@@ -2774,18 +2989,30 @@ declare global {
|
|
|
2774
2989
|
* Runs a callback after a function on an object has been run
|
|
2775
2990
|
* @returns A function to remove the patch
|
|
2776
2991
|
*/
|
|
2777
|
-
after
|
|
2992
|
+
after<O extends object, K extends FunctionKeys<O>>(
|
|
2993
|
+
object: O,
|
|
2994
|
+
method: K,
|
|
2995
|
+
callback: PatcherAfterCallback<O[K]>,
|
|
2996
|
+
): () => void;
|
|
2778
2997
|
/**
|
|
2779
2998
|
* Runs a callback before a function on an object has been run.
|
|
2780
2999
|
* Return true from the callback to prevent the function from running
|
|
2781
3000
|
* @returns A function to remove the patch
|
|
2782
3001
|
*/
|
|
2783
|
-
before
|
|
3002
|
+
before<O extends object, K extends FunctionKeys<O>>(
|
|
3003
|
+
object: O,
|
|
3004
|
+
method: K,
|
|
3005
|
+
callback: PatcherBeforeCallback<O[K]>,
|
|
3006
|
+
): () => void;
|
|
2784
3007
|
/**
|
|
2785
3008
|
* Runs a function instead of a function on an object
|
|
2786
3009
|
* @returns A function to remove the patch
|
|
2787
3010
|
*/
|
|
2788
|
-
instead
|
|
3011
|
+
instead<O extends object, K extends FunctionKeys<O>>(
|
|
3012
|
+
object: O,
|
|
3013
|
+
method: K,
|
|
3014
|
+
callback: PatcherInsteadCallback<O[K]>,
|
|
3015
|
+
): () => void;
|
|
2789
3016
|
}
|
|
2790
3017
|
|
|
2791
3018
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
@@ -2863,17 +3090,17 @@ declare global {
|
|
|
2863
3090
|
|
|
2864
3091
|
interface CommandOptions {
|
|
2865
3092
|
text: string | (() => string);
|
|
2866
|
-
keywords?: string
|
|
3093
|
+
keywords?: ReadonlyArray<string>;
|
|
2867
3094
|
hidden?: () => boolean;
|
|
2868
3095
|
}
|
|
2869
3096
|
interface BaseCommandOptions {
|
|
2870
3097
|
title: string;
|
|
2871
3098
|
}
|
|
2872
3099
|
interface CommandSelectOptions extends BaseCommandOptions {
|
|
2873
|
-
options: {
|
|
3100
|
+
options: ReadonlyArray<{
|
|
2874
3101
|
label: string;
|
|
2875
3102
|
value: string;
|
|
2876
|
-
}
|
|
3103
|
+
}>;
|
|
2877
3104
|
}
|
|
2878
3105
|
interface CommandNumberOptions extends BaseCommandOptions {
|
|
2879
3106
|
min?: number;
|
|
@@ -2930,6 +3157,11 @@ declare global {
|
|
|
2930
3157
|
/** Gets the exported values of a library */
|
|
2931
3158
|
get<T extends keyof Gimloader.Libraries>(name: T): Gimloader.Libraries[T];
|
|
2932
3159
|
}
|
|
3160
|
+
class ScopedLibsApi extends LibsApi {
|
|
3161
|
+
constructor(id: string);
|
|
3162
|
+
/** Gets a library by name, prompting the user to enable/download it if necessary. Returns a promise with its exports. */
|
|
3163
|
+
require(name: string, downloadUrl?: string): Promise<any>;
|
|
3164
|
+
}
|
|
2933
3165
|
class PluginsApi {
|
|
2934
3166
|
/** A list of all the plugins installed */
|
|
2935
3167
|
get list(): string[];
|
|
@@ -2947,48 +3179,117 @@ declare global {
|
|
|
2947
3179
|
return: any;
|
|
2948
3180
|
};
|
|
2949
3181
|
}
|
|
3182
|
+
class ScopedPluginsApi extends PluginsApi {
|
|
3183
|
+
constructor(id: string);
|
|
3184
|
+
/** Gets a plugin by name, prompting the user to enable/download it if necessary. Returns a promise with its exports. */
|
|
3185
|
+
require(name: string, downloadUrl?: string): Promise<any>;
|
|
3186
|
+
}
|
|
3187
|
+
interface SvelteExport {
|
|
3188
|
+
Index: any;
|
|
3189
|
+
Client: any;
|
|
3190
|
+
Animate: any;
|
|
3191
|
+
Attachments: any;
|
|
3192
|
+
Easing: any;
|
|
3193
|
+
Events: any;
|
|
3194
|
+
Motion: any;
|
|
3195
|
+
WindowReactivity: any;
|
|
3196
|
+
Reactivity: any;
|
|
3197
|
+
Store: any;
|
|
3198
|
+
Transition: any;
|
|
3199
|
+
}
|
|
2950
3200
|
class Api {
|
|
2951
|
-
/**
|
|
2952
|
-
* @deprecated Gimkit has switched from Parcel to vite, rendering this api useless.
|
|
2953
|
-
* @hidden
|
|
2954
|
-
*/
|
|
2955
|
-
static parcel: Readonly<ParcelApi>;
|
|
2956
3201
|
/** Functions to edit Gimkit's code */
|
|
2957
3202
|
static rewriter: Readonly<RewriterApi>;
|
|
3203
|
+
/** Functions to edit Gimkit's code */
|
|
3204
|
+
rewriter: Readonly<ScopedRewriterApi>;
|
|
2958
3205
|
/** Functions to listen for key combinations */
|
|
2959
3206
|
static hotkeys: Readonly<HotkeysApi>;
|
|
3207
|
+
/** Functions to listen for key combinations */
|
|
3208
|
+
hotkeys: Readonly<ScopedHotkeysApi>;
|
|
2960
3209
|
/**
|
|
2961
3210
|
* Ways to interact with the current connection to the server,
|
|
2962
3211
|
* and functions to send general requests
|
|
2963
3212
|
*/
|
|
2964
3213
|
static net: Readonly<NetApi>;
|
|
3214
|
+
/**
|
|
3215
|
+
* Ways to interact with the current connection to the server,
|
|
3216
|
+
* and functions to send general requests
|
|
3217
|
+
*/
|
|
3218
|
+
net: Readonly<ScopedNetApi>;
|
|
2965
3219
|
/** Functions for interacting with the DOM */
|
|
2966
3220
|
static UI: Readonly<UIApi>;
|
|
3221
|
+
/** Functions for interacting with the DOM */
|
|
3222
|
+
UI: Readonly<ScopedUIApi>;
|
|
2967
3223
|
/** Functions for persisting data between reloads */
|
|
2968
3224
|
static storage: Readonly<StorageApi>;
|
|
3225
|
+
/** Functions for persisting data between reloads */
|
|
3226
|
+
storage: Readonly<ScopedStorageApi>;
|
|
2969
3227
|
/** Functions for intercepting the arguments and return values of functions */
|
|
2970
3228
|
static patcher: Readonly<PatcherApi>;
|
|
3229
|
+
/** Functions for intercepting the arguments and return values of functions */
|
|
3230
|
+
patcher: Readonly<ScopedPatcherApi>;
|
|
2971
3231
|
/** Functions for adding commands to the command palette */
|
|
2972
3232
|
static commands: Readonly<CommandsApi>;
|
|
3233
|
+
/** Functions for adding commands to the command palette */
|
|
3234
|
+
commands: Readonly<ScopedCommandsApi>;
|
|
2973
3235
|
/** Methods for getting info on libraries */
|
|
2974
3236
|
static libs: Readonly<LibsApi>;
|
|
3237
|
+
/** Methods for getting info on libraries */
|
|
3238
|
+
libs: Readonly<ScopedLibsApi>;
|
|
2975
3239
|
/** Gets the exported values of a library */
|
|
2976
3240
|
static lib: <T extends keyof Gimloader.Libraries>(name: T) => Gimloader.Libraries[T];
|
|
3241
|
+
/** Gets the exported values of a library */
|
|
3242
|
+
lib: <T extends keyof Gimloader.Libraries>(name: T) => Gimloader.Libraries[T];
|
|
2977
3243
|
/** Methods for getting info on plugins */
|
|
2978
3244
|
static plugins: Readonly<PluginsApi>;
|
|
3245
|
+
/** Methods for getting info on plugins */
|
|
3246
|
+
plugins: Readonly<ScopedPluginsApi>;
|
|
2979
3247
|
/** Gets the exported values of a plugin, if it has been enabled */
|
|
2980
3248
|
static plugin: <T extends keyof Gimloader.Plugins>(name: T) => Gimloader.Plugins[T];
|
|
3249
|
+
/** Gets the exported values of a plugin, if it has been enabled */
|
|
3250
|
+
plugin: <T extends keyof Gimloader.Plugins>(name: T) => Gimloader.Plugins[T];
|
|
2981
3251
|
/** Gimkit's internal react instance */
|
|
2982
3252
|
static get React(): typeof import("react");
|
|
3253
|
+
/** Gimkit's internal react instance */
|
|
3254
|
+
get React(): typeof import("react");
|
|
2983
3255
|
/** Gimkit's internal reactDom instance */
|
|
2984
3256
|
static get ReactDOM(): typeof import("react-dom/client");
|
|
3257
|
+
/** Gimkit's internal reactDom instance */
|
|
3258
|
+
get ReactDOM(): typeof import("react-dom/client");
|
|
2985
3259
|
/** A variety of Gimkit internal objects available in 2d gamemodes */
|
|
2986
3260
|
static get stores(): Stores.Stores;
|
|
3261
|
+
/** A variety of gimkit internal objects available in 2d gamemodes */
|
|
3262
|
+
get stores(): Stores.Stores;
|
|
3263
|
+
/**
|
|
3264
|
+
* The exports of svelte v5.43.0, used internally by Gimloader and exposed to make scripts smaller.
|
|
3265
|
+
* Should never be used by hand.
|
|
3266
|
+
*/
|
|
3267
|
+
static svelte_5_43_0: SvelteExport;
|
|
3268
|
+
/**
|
|
3269
|
+
* The exports of svelte v5.43.0, used internally by Gimloader and exposed to make scripts smaller.
|
|
3270
|
+
* Should never be used by hand.
|
|
3271
|
+
*/
|
|
3272
|
+
svelte_5_43_0: SvelteExport;
|
|
3273
|
+
/**
|
|
3274
|
+
* @deprecated Gimkit has switched from Parcel to vite, rendering this api useless.
|
|
3275
|
+
* @hidden
|
|
3276
|
+
*/
|
|
3277
|
+
static parcel: Readonly<ParcelApi>;
|
|
3278
|
+
/**
|
|
3279
|
+
* @deprecated Gimkit has switched from Parcel to vite, rendering this api useless.
|
|
3280
|
+
* @hidden
|
|
3281
|
+
*/
|
|
3282
|
+
parcel: Readonly<ScopedParcelApi>;
|
|
2987
3283
|
/**
|
|
2988
3284
|
* @deprecated Use GL.UI.notification
|
|
2989
3285
|
* @hidden
|
|
2990
3286
|
*/
|
|
2991
3287
|
static get notification(): AntdNotification;
|
|
3288
|
+
/**
|
|
3289
|
+
* @deprecated Use api.UI.notification
|
|
3290
|
+
* @hidden
|
|
3291
|
+
*/
|
|
3292
|
+
get notification(): AntdNotification;
|
|
2992
3293
|
/**
|
|
2993
3294
|
* @deprecated No longer supported
|
|
2994
3295
|
* @hidden
|
|
@@ -3018,49 +3319,8 @@ declare global {
|
|
|
3018
3319
|
*/
|
|
3019
3320
|
static get pluginManager(): Readonly<PluginsApi>;
|
|
3020
3321
|
constructor(type?: string, name?: string);
|
|
3021
|
-
/**
|
|
3022
|
-
* @deprecated Gimkit has switched from Parcel to vite, rendering this api useless.
|
|
3023
|
-
* @hidden
|
|
3024
|
-
*/
|
|
3025
|
-
parcel: Readonly<ScopedParcelApi>;
|
|
3026
|
-
/** Functions to edit Gimkit's code */
|
|
3027
|
-
rewriter: Readonly<ScopedRewriterApi>;
|
|
3028
|
-
/** Functions to listen for key combinations */
|
|
3029
|
-
hotkeys: Readonly<ScopedHotkeysApi>;
|
|
3030
|
-
/**
|
|
3031
|
-
* Ways to interact with the current connection to the server,
|
|
3032
|
-
* and functions to send general requests
|
|
3033
|
-
*/
|
|
3034
|
-
net: Readonly<ScopedNetApi>;
|
|
3035
|
-
/** Functions for interacting with the DOM */
|
|
3036
|
-
UI: Readonly<ScopedUIApi>;
|
|
3037
|
-
/** Functions for persisting data between reloads */
|
|
3038
|
-
storage: Readonly<ScopedStorageApi>;
|
|
3039
|
-
/** Functions for intercepting the arguments and return values of functions */
|
|
3040
|
-
patcher: Readonly<ScopedPatcherApi>;
|
|
3041
|
-
/** Functions for adding commands to the command palette */
|
|
3042
|
-
commands: Readonly<ScopedCommandsApi>;
|
|
3043
3322
|
/** A utility for creating persistent settings menus, only available to plugins */
|
|
3044
3323
|
settings: PluginSettings;
|
|
3045
|
-
/** Methods for getting info on libraries */
|
|
3046
|
-
libs: Readonly<LibsApi>;
|
|
3047
|
-
/** Gets the exported values of a library */
|
|
3048
|
-
lib: <T extends keyof Gimloader.Libraries>(name: T) => Gimloader.Libraries[T];
|
|
3049
|
-
/** Methods for getting info on plugins */
|
|
3050
|
-
plugins: Readonly<PluginsApi>;
|
|
3051
|
-
/** Gets the exported values of a plugin, if it has been enabled */
|
|
3052
|
-
plugin: <T extends keyof Gimloader.Plugins>(name: T) => Gimloader.Plugins[T];
|
|
3053
|
-
/** Gimkit's internal react instance */
|
|
3054
|
-
get React(): typeof import("react");
|
|
3055
|
-
/** Gimkit's internal reactDom instance */
|
|
3056
|
-
get ReactDOM(): typeof import("react-dom/client");
|
|
3057
|
-
/** A variety of gimkit internal objects available in 2d gamemodes */
|
|
3058
|
-
get stores(): Stores.Stores;
|
|
3059
|
-
/**
|
|
3060
|
-
* @deprecated Use api.UI.notification
|
|
3061
|
-
* @hidden
|
|
3062
|
-
*/
|
|
3063
|
-
get notification(): AntdNotification;
|
|
3064
3324
|
/** Run a callback when the script is disabled */
|
|
3065
3325
|
onStop: (callback: () => void) => void;
|
|
3066
3326
|
/**
|
gimloader/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/gimloader",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.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": "33542972d6d76f13e1a96eb2b92c2efe2e9e2e62e7d0cadedecb4825ed1bea5d",
|
|
36
36
|
"typeScriptVersion": "5.2"
|
|
37
37
|
}
|