MCPcopy Create free account
hub / github.com/JohnWeisz/TypedJSON / parseAsArray

Method parseAsArray

src/parser.ts:149–156  ·  view source on GitHub ↗
(
        object: any,
        elementType: Serializable<T>,
        settings?: ITypedJSONSettings,
        dimensions?: number,
    )

Source from the content-addressed store, hash-verified

147 dimensions: 5,
148 ): Array<Array<Array<Array<Array<T>>>>>;
149 static parseAsArray<T>(
150 object: any,
151 elementType: Serializable<T>,
152 settings?: ITypedJSONSettings,
153 dimensions?: number,
154 ): Array<any> {
155 return new TypedJSON(elementType, settings).parseAsArray(object, dimensions as any);
156 }
157
158 static parseAsSet<T>(
159 object: any,

Callers 5

objArrayDeserializerFunction · 0.80
array.spec.tsFile · 0.80
just-json.spec.tsFile · 0.80
objArrayDeserializerFunction · 0.80
array.spec.tsFile · 0.80

Calls 5

_mapKnownTypesMethod · 0.95
parseToJSObjectFunction · 0.90
createArrayTypeFunction · 0.90
ensureTypeDescriptorFunction · 0.90
convertSingleValueMethod · 0.45

Tested by 2

objArrayDeserializerFunction · 0.64
objArrayDeserializerFunction · 0.64