File tree Expand file tree Collapse file tree
packages/snaps-execution-environments/src/common/endowments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ import { rootRealmGlobal } from '../globalObject';
1313
1414/**
1515 * A function for sending JSON-RPC notifications from an endowment.
16- * Used by the network endowment to signal outbound request lifecycle events.
16+ * Used by endowments that perform outbound operations (e.g., network `fetch`)
17+ * to signal request lifecycle events.
1718 */
1819export type NotifyFunction = (
1920 notification : Omit < JsonRpcNotification , 'jsonrpc' > ,
@@ -38,9 +39,9 @@ export type EndowmentFactoryOptions = {
3839} ;
3940
4041/**
41- * The object returned by an endowment factory. Contains the named endowment
42- * values ( keyed by name) and an optional teardown function for lifecycle
43- * management.
42+ * The object returned by an endowment factory. Contains the endowment values
43+ * keyed by their global name (e.g., `setTimeout`, `Date` ) and an optional
44+ * teardown function for lifecycle management.
4445 */
4546export type EndowmentFactoryResult = {
4647 /**
You can’t perform that action at this time.
0 commit comments