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
4 changes: 2 additions & 2 deletions src/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export function batchInvoke(functions: Nullable<Fn>[]) {
}

/**
* Call the function
* Call the function, returning the result
*/
export function invoke(fn: Fn) {
export function invoke<T>(fn: () => T): T {
return fn()
}

Expand Down