It could be cool to have a declaration file to have typescript support for imports.
Something like this :
// src/minecraft-protocol-forge.d.ts
declare module "minecraft-protocol-forge" {
import { Client } from "minecraft-protocol";
interface ForgeMod {
modid: string;
version: string;
}
interface ForgeOptions {
forgeMods: ForgeMod[];
}
/**
* Manually triggers the Forge handshake with a specific list of mods.
*/
export function forgeHandshake(client: Client, options: ForgeOptions): void;
/**
* Automatically detects if the server is Forge and handles the handshake.
* This is the recommended way for "auto-resolution".
*/
export function autoVersionForge(client: Client): void;
}
It could be cool to have a declaration file to have typescript support for imports.
Something like this :