( filter: (input: T, ast: AST, options: ParseOptions) => Schema.FilterOutput, annotations?: Schema.Annotations.Filter | undefined, aborted: boolean = false )
| 2985 | ) { |
| 2986 | return fallback(input, options) |
| 2987 | } |
| 2988 | if (!(typeof input === "object" && input !== null && !Array.isArray(input))) { |
| 2989 | return Effect.fail(new SchemaIssue.InvalidType(ast, input, options)) |
| 2990 | } |
| 2991 | const props = compileMembers() |
| 2992 | const record = input as Record<PropertyKey, unknown> |
| 2993 | const out: Record<PropertyKey, unknown> = {} |
| 2994 | const state: ObjectParserState = { ast, input: record, out, issues: undefined, options } |
| 2995 | try { |
| 2996 | for (let index = 0; index < props.length; index++) { |
| 2997 | const property = props[index] |
| 2998 | const name = property.name |
| 2999 | const hasKey = hasPropertySignature(record, name) |
| 3000 | const value = hasKey ? record[name] : InternalParser.missing |
no test coverage detected
searching dependent graphs…