ScavXpCounts/types/loaders/ModTypeCheck.d.ts

44 lines
1.6 KiB
TypeScript
Raw Normal View History

2024-11-12 11:51:30 -07:00
import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod";
import { IPostDBLoadModAsync } from "@spt/models/external/IPostDBLoadModAsync";
import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod";
import { IPostSptLoadModAsync } from "@spt/models/external/IPostSptLoadModAsync";
import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod";
import { IPreSptLoadModAsync } from "@spt/models/external/IPreSptLoadModAsync";
2023-08-17 19:49:16 -06:00
export declare class ModTypeCheck {
/**
2024-11-12 11:51:30 -07:00
* Use defined safe guard to check if the mod is a IPreSptLoadMod
2023-08-17 19:49:16 -06:00
* @returns boolean
*/
2024-11-12 11:51:30 -07:00
isPreSptLoad(mod: any): mod is IPreSptLoadMod;
2023-08-17 19:49:16 -06:00
/**
2024-11-12 11:51:30 -07:00
* Use defined safe guard to check if the mod is a IPostSptLoadMod
2023-08-17 19:49:16 -06:00
* @returns boolean
*/
2024-11-12 11:51:30 -07:00
isPostSptLoad(mod: any): mod is IPostSptLoadMod;
2023-08-17 19:49:16 -06:00
/**
* Use defined safe guard to check if the mod is a IPostDBLoadMod
* @returns boolean
*/
2024-11-12 11:51:30 -07:00
isPostDBLoad(mod: any): mod is IPostDBLoadMod;
2023-08-17 19:49:16 -06:00
/**
2024-11-12 11:51:30 -07:00
* Use defined safe guard to check if the mod is a IPreSptLoadModAsync
2023-08-17 19:49:16 -06:00
* @returns boolean
*/
2024-11-12 11:51:30 -07:00
isPreSptLoadAsync(mod: any): mod is IPreSptLoadModAsync;
2023-08-17 19:49:16 -06:00
/**
2024-11-12 11:51:30 -07:00
* Use defined safe guard to check if the mod is a IPostSptLoadModAsync
2023-08-17 19:49:16 -06:00
* @returns boolean
*/
2024-11-12 11:51:30 -07:00
isPostSptLoadAsync(mod: any): mod is IPostSptLoadModAsync;
2023-08-17 19:49:16 -06:00
/**
* Use defined safe guard to check if the mod is a IPostDBLoadModAsync
* @returns boolean
*/
2024-11-12 11:51:30 -07:00
isPostDBLoadAsync(mod: any): mod is IPostDBLoadModAsync;
2023-08-17 19:49:16 -06:00
/**
* Checks for mod to be compatible with 3.X+
* @returns boolean
*/
isPostV3Compatible(mod: any): boolean;
}