Module

x/aws_api/encoding/json.ts>readObj

From-scratch Typescript client for accessing AWS APIs
Extremely Popular
Go to Latest
function readObj
import { readObj } from "https://dotland.deno.dev/x/aws_api@v0.2.0/encoding/json.ts";

Type Parameters

R extends { [key: string]: (FieldTypeIn | [FieldTypeIn]); }
O extends { [key: string]: (FieldTypeIn | [FieldTypeIn]); }

Parameters

opts: { required: R; optional: O; remap?: { [key: string]: keyof R | keyof O; }; }
data: JSONValue

Returns

[key in keyof R | keyof O]: key extends keyof R ? ResolveFieldTypeIn<R[key]> : key extends keyof O ? (ResolveFieldTypeIn<O[key]> | null) : never