This commit is contained in:
kakkokari-gtyih 2024-06-07 19:45:59 +09:00
parent 6a7ed7e0d1
commit c77d897880

View File

@ -183,6 +183,14 @@ export class Storage<T extends StateDef> {
}); });
} }
/**
* Sets the configuration options for Pizzax.
*
* initを待ったりとかはしないのでboot.jsなど
*
* @param config - The partial configuration object.
*/
public setConfig(config: Partial<PizzaxConfig>) { public setConfig(config: Partial<PizzaxConfig>) {
this.options = Object.assign(this.options, config); this.options = Object.assign(this.options, config);
} }