MCPcopy Create free account
hub / github.com/cortexkit/magic-context / asStringArray

Function asStringArray

packages/plugin/src/shared/conflict-fixer.ts:32–36  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

30}
31
32function asStringArray(value: unknown): string[] {
33 return Array.isArray(value)
34 ? value.filter((item): item is string => typeof item === "string")
35 : [];
36}
37
38function readConfig(filePath: string): JsonObject | null {
39 if (!existsSync(filePath)) {

Callers 1

fixConflictsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected