Skip to content

endWarningCapture

endWarningCapture(): string[]

Defined in: packages/core/src/utils/consoleUtils.ts:117

Close the warning-capture window opened by beginWarningCapture and return everything collected (empty array if none / never opened). Always call this — a try/finally around the captured work — so a throw can’t leak the capture state into later warnings.

string[]