typesafe-dynamodb
typesafe-dynamodb copied to clipboard
Incorrect type inference when table partition key is a number
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`
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.
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.
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.