chore(lib/modules/metro/subscriptions): update documentation

This commit is contained in:
PalmDevs 2025-05-15 16:47:02 +07:00
parent 066f6c9671
commit 4d31b7016c
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -9,6 +9,7 @@ export type ModuleWithImportedPathInitializedCallback = (id: Metro.ModuleID, pat
/**
* Registers a callback to be called when any module is initialized.
* During this time, the module factory is not yet executed.
*
* @see {@link initializedModuleHasBadExports} to avoid bad module exports.
*
@ -23,6 +24,9 @@ export function onAnyModuleInitialized(callback: ModuleInitializedCallback) {
/**
* Registers a callback to be called when a specific module is initialized.
*
* This runs after the module factory has been executed, but before the module is considered initialized by Metro.
* However, Revenge APIs will consider the module initialized at this poi
*
* @see {@link initializedModuleHasBadExports} to avoid bad module exports.
*
* @param id The ID of the module.
@ -56,6 +60,9 @@ export function onModuleFinishedImporting(callback: ModuleWithImportedPathInitia
/**
* Registers a callback to be called when any module is required the first time.
*
* This runs after the module factory has been executed, but before the module is considered initialized by Metro.
* However, Revenge APIs will consider the module initialized at this point.
*
* @see {@link initializedModuleHasBadExports} to avoid bad module exports.
*
* @param callback The callback to be called.
@ -68,6 +75,7 @@ export function onAnyModuleFirstRequired(callback: ModuleFirstRequiredCallback)
/**
* Registers a callback to be called when a specific module is required the first time.
* During this time, the module factory is not yet executed.
*
* @see {@link initializedModuleHasBadExports} to avoid bad module exports.
*