You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 19, 2023. It is now read-only.
However, there seems do be some odd typing going on. When I read the source, I see that the type for options passed into createTable is CreateTableOptions, which extends BaseCreateTableOptions and includes:
However, when I call createTable this in my code and click through to the type, I'm seeing a different CreateTableOptions type, which only extends ProvisionedThroughput and doesn't include sse options.
The same is true for billingMode.
Here are the types by comparison:
export type CreateTableOptions = ProvisionedCreateTableOptions | OnDemandCreateTableOptions;
I see that this PR: https://github.com/awslabs/dynamodb-data-mapper-js/pull/147/files added support for SSE.
However, there seems do be some odd typing going on. When I read the source, I see that the type for options passed into
createTable
isCreateTableOptions
, which extendsBaseCreateTableOptions
and includes:However, when I call
createTable
this in my code and click through to the type, I'm seeing a differentCreateTableOptions
type, which only extendsProvisionedThroughput
and doesn't include sse options.The same is true for
billingMode
.Here are the types by comparison:
Why is there this odd discrepancy? It leads to a compiler error when calling
createTable()
withsseSpecification
param. cc @jeskewThe text was updated successfully, but these errors were encountered: