Enable no unused vars and add more types (#2005)
Some checks failed
Project CI / build (24.x) (push) Has been cancelled

This commit is contained in:
Carlos Fernandez 2026-06-14 16:10:49 -04:00 committed by GitHub
parent af49c1f4c8
commit 96f090bef5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 141 additions and 31 deletions

View file

@ -23,6 +23,10 @@ export default class DHRoll extends Roll {
static DefaultDialog = D20RollDialog;
/**
* @param {Partial<RollConfig>} config
* @returns {Promise<RollConfig>}
*/
static async build(config = {}, message = {}) {
const roll = await this.buildConfigure(config, message);
if (!roll) return;
@ -34,6 +38,10 @@ export default class DHRoll extends Roll {
return config;
}
/**
* @param {Partial<RollConfig>} config
* @returns {Promise<RollConfig>}
*/
static async buildConfigure(config = {}, message = {}) {
config.hooks = [...this.getHooks(), ''];
config.dialog ??= {};