@@ -3,14 +3,14 @@ import {
33 DynamoDBClient , CreateTableCommand , BatchWriteItemCommand , CreateTableCommandInput ,
44} from '@aws-sdk/client-dynamodb' ;
55import { DynamoDBDocumentClient , BatchWriteCommand } from '@aws-sdk/lib-dynamodb' ;
6- import dynamodbLocal from 'aws-dynamodb-local' ;
6+ import * as dynamodbLocal from 'aws-dynamodb-local' ;
77import type Serverless from 'serverless' ;
88import type Plugin from 'serverless/classes/Plugin' ;
99import path from 'node:path' ;
10- import Aws , { CloudFormationResource } from 'serverless/plugins/aws/provider/awsProvider' ;
11- import { StartOptions } from 'aws-dynamodb-local/dist/start' ;
12- import { locateSeeds , writeSeeds } from './seeder' ;
10+ import type Aws from 'serverless/plugins/aws/provider/awsProvider' ;
11+ import type { CloudFormationResource } from 'serverless/plugins/aws/provider/awsProvider' ;
1312import { Config , SeedConfig } from './config' ;
13+ import { locateSeeds , writeSeeds } from './seeder' ;
1414
1515const PLUGIN_NAME = 'serverless-dynamodb' ;
1616
@@ -25,7 +25,7 @@ class ServerlessDynamoDBPlugin implements Plugin {
2525
2626 private readonly options :
2727 & Serverless . Options
28- & Partial < StartOptions >
28+ & Parameters < typeof dynamodbLocal . start > [ 0 ]
2929 & { localPath : string , noStart ?: string , seed ?: boolean , migrate ?: boolean }
3030 & Record < string , string | string [ ] | boolean | unknown > ;
3131
0 commit comments