MCPcopy Create free account
hub / github.com/samchon/typia / decode_array

Function decode_array

packages/core/src/programmers/http/HttpFormDataProgrammer.ts:291–307  ·  view source on GitHub ↗
(props: {
    context: ITypiaContext;
    metadata: MetadataSchema;
    input: ts.Expression;
  })

Source from the content-addressed store, hash-verified

289 };
290
291 const decode_array = (props: {
292 context: ITypiaContext;
293 metadata: MetadataSchema;
294 input: ts.Expression;
295 }): ts.Expression =>
296 props.metadata.nullable || props.metadata.isRequired() === false
297 ? ts.factory.createCallExpression(
298 props.context.importer.internal("httpFormDataReadArray"),
299 undefined,
300 [
301 props.input,
302 props.metadata.nullable
303 ? ts.factory.createNull()
304 : ts.factory.createIdentifier("undefined"),
305 ],
306 )
307 : props.input;
308}

Callers 1

decode_regular_propertyFunction · 0.70

Calls 2

isRequiredMethod · 0.80
internalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…