Closed sam-goodwin closed 1 year ago
The type error is by design in typescript. interfaces without a index signature cannot be used as a type that does (ex: Attribute). And the Attribute/AttributeValue type is trying to limit property types to match what dynamo can handle.
Plus the code sample here is a hack that would break if said field was used as a key or we ever generate jsonschema/openai for entities.
Options:
any
and do not type check the definition of the entity attributes.
This doesn't work:
But this does: