Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/devframe/src/rpc/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export interface RpcFunctionsCollector<LocalFunctions, SetupContext = undefined>
readonly functions: LocalFunctions
/** Map of registered function definitions keyed by function name */
readonly definitions: Map<string, RpcFunctionDefinitionAnyWithContext<SetupContext>>
/** Register a new function definition */
register: (fn: RpcFunctionDefinitionAnyWithContext<SetupContext>) => void
/** Update an existing function definition */
update: (fn: RpcFunctionDefinitionAnyWithContext<SetupContext>) => void
/** Register a new function definition. Pass `force` to overwrite an existing one. */
register: (fn: RpcFunctionDefinitionAnyWithContext<SetupContext>, force?: boolean) => void
/** Update an existing function definition. Pass `force` to register it if it doesn't exist yet. */
update: (fn: RpcFunctionDefinitionAnyWithContext<SetupContext>, force?: boolean) => void
/** Subscribe to function changes, returns unsubscribe function */
onChanged: (fn: (id?: string) => void) => (() => void)
}
Expand Down
Loading