aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

`NativeAttributeValue` type is `any`

Open nmss opened this issue 1 month ago • 1 comments

Checkboxes for prior research

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

nmss avatar Nov 25 '25 18:11 nmss

| InstanceType<{ new (...args: any[]): any }>;

can be removed from the union, though it will be a "breaking" fix

kuhe avatar Dec 04 '25 21:12 kuhe