@types/gimloader 1.11.0 → 1.11.2

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