The Model and DynamoDBClient constructors have parameters of type ModelOptions and ServiceConfig. Currently you only get the typing benefits if you define these parameters inline.
This PR exposes these types as part of the main API. Exposing them at the top level API means you can define them as separate variables - especially useful for the ServiceConfig if you're creating more than one model with the same config.
Description
The
Model
andDynamoDBClient
constructors have parameters of typeModelOptions
andServiceConfig
. Currently you only get the typing benefits if you define these parameters inline.This PR exposes these types as part of the main API. Exposing them at the top level API means you can define them as separate variables - especially useful for the
ServiceConfig
if you're creating more than one model with the same config.