feat: Ado 1296 spike credential setup in templates (#7786)
- Add a 'Setup template credentials' view to setup the credentials of a template before it is created
This commit is contained in:
8
packages/editor-ui/src/utils/assert.ts
Normal file
8
packages/editor-ui/src/utils/assert.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Asserts given condition
|
||||
*/
|
||||
export function assert(condition: unknown, message?: string): asserts condition {
|
||||
if (!condition) {
|
||||
throw new Error(message ?? 'Assertion failed');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user