44 lines
1.6 KiB
TypeScript
Raw Normal View History

2024-08-05 20:33:00 +10: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-06-11 15:10:34 +10:00
export declare class ModTypeCheck {
/**
2024-08-05 20:33:00 +10:00
* Use defined safe guard to check if the mod is a IPreSptLoadMod
2023-06-11 15:10:34 +10:00
* @returns boolean
*/
2024-08-05 20:33:00 +10:00
isPreSptLoad(mod: any): mod is IPreSptLoadMod;
2023-06-11 15:10:34 +10:00
/**
2024-08-05 20:33:00 +10:00
* Use defined safe guard to check if the mod is a IPostSptLoadMod
2023-06-11 15:10:34 +10:00
* @returns boolean
*/
2024-08-05 20:33:00 +10:00
isPostSptLoad(mod: any): mod is IPostSptLoadMod;
2023-06-11 15:10:34 +10:00
/**
* Use defined safe guard to check if the mod is a IPostDBLoadMod
* @returns boolean
*/
2024-08-05 20:33:00 +10:00
isPostDBLoad(mod: any): mod is IPostDBLoadMod;
2023-06-11 15:10:34 +10:00
/**
2024-08-05 20:33:00 +10:00
* Use defined safe guard to check if the mod is a IPreSptLoadModAsync
2023-06-11 15:10:34 +10:00
* @returns boolean
*/
2024-08-05 20:33:00 +10:00
isPreSptLoadAsync(mod: any): mod is IPreSptLoadModAsync;
2023-06-11 15:10:34 +10:00
/**
2024-08-05 20:33:00 +10:00
* Use defined safe guard to check if the mod is a IPostSptLoadModAsync
2023-06-11 15:10:34 +10:00
* @returns boolean
*/
2024-08-05 20:33:00 +10:00
isPostSptLoadAsync(mod: any): mod is IPostSptLoadModAsync;
2023-06-11 15:10:34 +10:00
/**
* Use defined safe guard to check if the mod is a IPostDBLoadModAsync
* @returns boolean
*/
2024-08-05 20:33:00 +10:00
isPostDBLoadAsync(mod: any): mod is IPostDBLoadModAsync;
2023-06-11 15:10:34 +10:00
/**
* Checks for mod to be compatible with 3.X+
* @returns boolean
*/
isPostV3Compatible(mod: any): boolean;
}