TypeScript
Types are included in @moderok/sdk. Import types when you need them:
ts
// import { Moderok } from "./moderok.min.js";
import { Moderok, type InitConfig } from "@moderok/sdk";
const config: InitConfig = {
appKey: "mk_...",
};
Moderok.init(config);If your code references chrome.*, add @types/chrome as a dev dependency in your project.
See Configuration for the full InitConfig shape.