MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / hasErrors

Function hasErrors

Extension/src/Utility/Sandbox/interfaces.ts:39–44  ·  view source on GitHub ↗
(instance: any)

Source from the content-addressed store, hash-verified

37export type ArbitraryModule = Record<string, (...args: any[]) => unknown>;
38
39export function hasErrors(instance: any): instance is ScriptError[] {
40 if (is.array(instance)) {
41 return instance.length > 0;
42 }
43 return false;
44}

Callers 2

subscribeFunction · 0.90
generateFilterFnFunction · 0.90

Calls 1

arrayMethod · 0.80

Tested by

no test coverage detected