Type declarations for global Minecraft script APIs that are not a part of separate native modules.
Copy the engine.d.ts
file into your creation's scripts folder and add the following to your tsconfig.json
file:
{
"compilerOptions": {
"lib": ["es2022"],
"types": ["./engine.d.ts"]
}
}