aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
3.06k stars 573 forks source link

chore(lib-dynamodb): re-export options and NativeAttribute* types #5982

Closed trivikr closed 5 months ago

trivikr commented 5 months ago

Issue

Fixes: https://github.com/aws/aws-sdk-js-v3/issues/5981

Description

Re-export options and NativeAttribute* types

Testing

Verified that there are no type errors:

import { NativeAttributeValue } from "../aws-sdk-js-v3/lib/lib-dynamodb";

const key: Record<string, NativeAttributeValue> = {
  null: null,
  undefined: undefined,
  boolean: true,
  number: 1234,
  string: "string",
  NumberValue: {
    value: "1234",
  },
  bigint: BigInt(1234),
  NativeAttributeBinary: new ArrayBuffer(8),
  list: [
    null,
    undefined,
    true,
    1234,
    "string",
    { value: "1234" },
    BigInt(1234),
    new ArrayBuffer(8),
  ],
  map: {
    null: null,
    undefined: undefined,
    boolean: true,
    number: 1234,
    string: "string",
    NumberValue: {
      value: "1234",
    },
    bigint: BigInt(1234),
    NativeAttributeBinary: new ArrayBuffer(8),
  },
};

Checklist


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

github-actions[bot] commented 5 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.