mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
- 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');
|
|
}
|
|
}
|