typesafe-dynamodb icon indicating copy to clipboard operation
typesafe-dynamodb copied to clipboard

Incorrect type inference when table partition key is a number

Open brendo-m opened this issue 2 years ago • 1 comments

To repro:

const table = new Table<{ id: number }, "id">(
  new aws_dynamodb.Table(stack, "table", {
    partitionKey: {
      name: "id",
      type: aws_dynamodb.AttributeType.NUMBER,
    },
  })
);

const item = table.getItem({ id: "123" }); // item inferred to be `never`

brendo-m avatar Jun 03 '22 04:06 brendo-m

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

github-actions[bot] avatar Aug 03 '22 03:08 github-actions[bot]

Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

github-actions[bot] avatar Aug 11 '22 02:08 github-actions[bot]

Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

github-actions[bot] avatar Aug 18 '22 03:08 github-actions[bot]