mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(packages): remove isolatedDeclarations for store type inference support (#295)
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
/**
|
||||
* Wrap a function to catch and handle errors instead of throwing.
|
||||
*
|
||||
* @param fn - Function to wrap (can be undefined)
|
||||
* @param onError - Error handler (defaults to console.error)
|
||||
* @returns Wrapped function that never throws, or undefined if fn is undefined
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const safeFn = tryCatch(riskyFn, (e) => logger.error(e));
|
||||
|
||||
Reference in New Issue
Block a user