UNPKG

bmad-agent-init

Version:

Windsurf integration for BMAD-METHOD - automatic initialization of bmad-agent in projects

14 lines (11 loc) • 368 B
export function shouldThrowError<T extends (...args: Array<any>) => boolean>( throwError: boolean | T | undefined, params: Parameters<T>, ): boolean { // Allow throwError function to override throwing behavior on a per-error basis if (typeof throwError === 'function') { return throwError(...params) } return !!throwError } export function noop() {}