- Add a 'Setup template credentials' view to setup the credentials of a template before it is created
9 lines
191 B
TypeScript
9 lines
191 B
TypeScript
/**
|
|
* Asserts given condition
|
|
*/
|
|
export function assert(condition: unknown, message?: string): asserts condition {
|
|
if (!condition) {
|
|
throw new Error(message ?? 'Assertion failed');
|
|
}
|
|
}
|