Initial release for SPT 3.9

This commit is contained in:
2024-07-20 18:08:38 +02:00
parent 7df25ba694
commit c83da69a3e
713 changed files with 34110 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
/// <reference types="node" />
import { IncomingMessage, ServerResponse } from "node:http";
export type HandleFn = (_: string, req: IncomingMessage, resp: ServerResponse) => void;
/**
* Associates handlers, HTTP methods and a base url to a listener using a proxy
* @param basePath The base path
* @returns The decorator that create the listener proxy
*/
export declare const Listen: (basePath: string) => <T extends new (...args: any[]) => any>(Base: T) => T;
/**
* HTTP DELETE decorator
*/
export declare const Delete: (path?: string) => (target: any, propertyKey: string) => void;
/**
* HTTP GET decorator
*/
export declare const Get: (path?: string) => (target: any, propertyKey: string) => void;
/**
* HTTP OPTIONS decorator
*/
export declare const Options: (path?: string) => (target: any, propertyKey: string) => void;
/**
* HTTP PATCH decorator
*/
export declare const Patch: (path?: string) => (target: any, propertyKey: string) => void;
/**
* HTTP POST decorator
*/
export declare const Post: (path?: string) => (target: any, propertyKey: string) => void;
/**
* HTTP PUT decorator
*/
export declare const Put: (path?: string) => (target: any, propertyKey: string) => void;

View File

@@ -0,0 +1,4 @@
import type { DependencyContainer } from "tsyringe";
export interface IPostDBLoadMod {
postDBLoad(container: DependencyContainer): void;
}

View File

@@ -0,0 +1,4 @@
import type { DependencyContainer } from "tsyringe";
export interface IPostDBLoadModAsync {
postDBLoadAsync(container: DependencyContainer): Promise<void>;
}

View File

@@ -0,0 +1,4 @@
import type { DependencyContainer } from "tsyringe";
export interface IPostSptLoadMod {
postSptLoad(container: DependencyContainer): void;
}

View File

@@ -0,0 +1,4 @@
import type { DependencyContainer } from "tsyringe";
export interface IPostSptLoadModAsync {
postSptLoadAsync(container: DependencyContainer): Promise<void>;
}

View File

@@ -0,0 +1,4 @@
import type { DependencyContainer } from "tsyringe";
export interface IPreSptLoadMod {
preSptLoad(container: DependencyContainer): void;
}

View File

@@ -0,0 +1,4 @@
import type { DependencyContainer } from "tsyringe";
export interface IPreSptLoadModAsync {
preSptLoadAsync(container: DependencyContainer): Promise<void>;
}

2
types/models/external/tsyringe.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { DependencyContainer } from "tsyringe";
export type { DependencyContainer };