()
| 2935 | | undefined |
| 2936 | type Index = NonNullable<typeof indexes>[number] |
| 2937 | const compileMembers = (): Array<ParsedProperty> => { |
| 2938 | if (!properties) { |
| 2939 | properties = ast.propertySignatures.map((ps) => ({ |
| 2940 | parser: compileField(ps.type), |
| 2941 | name: ps.name, |
| 2942 | type: ps.type, |
| 2943 | ownOnly: requiresOwnProperty(ps.name) |
| 2944 | })) |
| 2945 | indexes = indexCount |
| 2946 | ? ast.indexSignatures.map((is) => ({ |
| 2947 | is, |
| 2948 | parserKey: compile(parameterFromPropertyKey(is.parameter)), |
| 2949 | parserValue: compileField(is.type) |
| 2950 | })) |
| 2951 | : undefined |
| 2952 | } |
| 2953 | return properties |
| 2954 | } |
| 2955 | |
| 2956 | const makeFallback = (): SchemaParser.Parser => { |
| 2957 | const expectedKeys = new Set<PropertyKey>( |
nothing calls this directly
no test coverage detected