Added setting registration status (closes #20)

This commit is contained in:
Oliver 2025-12-09 21:54:29 -07:00
parent b3119f5287
commit dfcbef81ef
16 changed files with 68 additions and 19 deletions

View file

@ -5,7 +5,8 @@ of incompatabilities for whatever reason. This can also be used
internally within this module if we discover incompatabilites with
systems and want to disable it on our side.
This file is more as documentation than anything at this point in time.
This file is meant more documentation than anything at this point in
time.
Call Signature: (settingKey: string) => {}
Call Signature: (settingKey: string) => (void | boolean)
*/

View file

@ -0,0 +1,13 @@
/*
This hook is used to enable any modules that attempt to disable settings
or just want to investigate what settings are enabled to be able to get
a ping with information about which settings where registered entirely
and which weren't. The object that is passed to this is frozen and is
not meant to be edited as you cannot de-register nor prevent setting
registration from this hook. For that see the "oft.preventSetting" hook.
This file is meant more documentation than anything at this point in
time.
Call Signature: (settings: Record<string, boolean>) => void
*/