Skip to content

NativeAttributeValue type is any #7526

@nmss

Description

@nmss

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

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issuequeuedThis issues is on the AWS team's backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions