@vttforge/core / moduleSubType
Function: moduleSubType() ​
moduleSubType(
moduleId,type):string
The key Foundry files a module's document sub-type under.
Use it wherever you name the type outside registerModule: registering the sheet, checking actor.type, writing documentTypes in the manifest. The prefix is easy to get wrong by hand and fails silently when you do.
Parameters ​
moduleId ​
string
type ​
string
Returns ​
string
Example ​
ts
moduleSubType('pdf-character-sheet', 'pdf'); // 'pdf-character-sheet.pdf'