There was an error while loading. Please reload this page.
registerAPI is a wrapper to make it a little bit easier to instantiate your module’s API.
moduleId: string
Your module’s unique ID.
api: Record<string, Function>
A dictionary of the API methods you’d like to register.
import { registerAPI } from '@revolutionarygamesco/common-foundryvtt' import { coolMethodA, coolMethodB, coolMethodC } from './my-cool-methods.ts' registerAPI('my-module', { coolMethodA, coolMethodB, coolMethodC })