Fix StartOS 0.4 TypeScript packaging to match SDK API
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Converts an unknown thrown value into an Error instance.
|
||||
* If `e` is already an Error, wraps it; if a string, uses it as the message;
|
||||
* otherwise JSON-serializes it as the error message.
|
||||
*
|
||||
* @param e - The unknown value to convert
|
||||
* @returns An Error instance
|
||||
*/
|
||||
export declare const asError: (e: unknown) => Error;
|
||||
Reference in New Issue
Block a user