You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/assert.ts
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,16 @@
1
+
/**
2
+
* """
3
+
* Asserts that a given condition is true. If the condition is false, logs an error message and throws an exception. Optionally supports additional debug data for logging.
4
+
*
5
+
* Parameters:
6
+
* - cond: A boolean condition to evaluate.
7
+
* - msg: An optional message to display if the assertion fails.
8
+
* - debugData: Optional extra data for debugging output when the assertion fails.
9
+
*
10
+
* Throws:
11
+
* - Error with the provided message if the condition is false.
0 commit comments