chore(lib/modules/metro/subscriptions): update documentation
This commit is contained in:
parent
066f6c9671
commit
4d31b7016c
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue