aws-sdk-js-v3
aws-sdk-js-v3 copied to clipboard
`NativeAttributeValue` type is `any`
Checkboxes for prior research
- [x] I've gone through Developer Guide and API reference
- [x] I've checked AWS Forums and StackOverflow.
- [x] I've searched for previous similar issues and didn't find any solution.
Describe the bug
The exported type NativeAttributeValue is resolved (in my IDE) to any, so my inputs are not validated
Regression Issue
- [ ] Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/[email protected], @aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v22.18.0
Reproduction Steps
import { NativeAttributeValue } from '@aws-sdk/lib-dynamodb';
Observed Behavior
When hovering the type, I'm seeing type NativeAttributeValue = any
Expected Behavior
I should see a more complex type, as it seems to be intended
something like type NativeAttributeValue = NativeScalarAttributeValue | { [key: string]: NativeAttributeValue; } | NativeAttributeValue[] | ...
Possible Solution
that seems to be caused by this part of the type: InstanceType<{ new (...args: any[]): any; }>
Additional Information/Context
No response
| InstanceType<{ new (...args: any[]): any }>;
can be removed from the union, though it will be a "breaking" fix