kwojcicki / amazon-dax-client-v3

AWS JS SDK v3 compatible dax client
Apache License 2.0
8 stars 2 forks source link

missing properties #6

Closed daveharig closed 4 months ago

daveharig commented 5 months ago

const daxClient = new AmazonDaxClient({ client: DynamoDBDocumentClient.from(new DynamoDBClient({ endpoint: daxEndpoint, region: Configs.REGION.MAIN })) });

Error: Type 'DynamoDBDocumentClient' is missing the following properties from type 'DynamoDBClient': getDefaultHttpAuthSchemeParametersProvider, getIdentityProviderConfigProviderts(2739) AmazonDaxClient.d.ts(8, 5): The expected type comes from property 'client' which is declared here on type '{ client: DynamoDBClient; config: { skipHostnameVerification?: boolean | undefined; maxRetries?: number | undefined; writeRetries?: number | undefined; readRetries?: number | undefined; ... 8 more ...; threadKeepAlive?: number | undefined; }; }'

kwojcicki commented 5 months ago

I have a code change locally that should fix this. I'll push it later tonight sorry about the inconvenience

kwojcicki commented 5 months ago

hey dave, this should be fixed in the latest 1.0.5 release as part of https://github.com/kwojcicki/amazon-dax-client-v3/commit/f4cfda7d9335578b67882e36264b67ea6139ae98#diff-1d303347dc4638b4f5afae892c1832c797f99c033d5ca672aaf69201f30880f6

daveharig commented 4 months ago

Bug squashed! Thank you!