Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aws_api/encoding/json.ts>readObj

From-scratch Typescript client for accessing AWS APIs
Extremely Popular
Latest
function readObj
import { readObj } from "https://deno.land/x/aws_api@v0.8.1/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