MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / parseStringArrayLossy

Function parseStringArrayLossy

etscore/options_parser.go:398–410  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

396}
397
398func parseStringArrayLossy(value any) []string {
399 arr, ok := value.([]any)
400 if !ok {
401 return nil
402 }
403 result := make([]string, 0, len(arr))
404 for _, item := range arr {
405 if s, ok := item.(string); ok {
406 result = append(result, s)
407 }
408 }
409 return result
410}
411
412func asStringAnyMap(value any) (func(string) (any, bool), bool) {
413 switch m := value.(type) {

Callers 1

parseOverridesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected