Skip to content

Commit 4e832c2

Browse files
committed
chore: resolve typecheck errors
1 parent 0261910 commit 4e832c2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dynamodb.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import * as os from 'node:os'
22
import * as path from 'node:path'
33
import type { Config } from './src/types'
44

5-
export default {
5+
const config: Config = {
66
port: 8000,
77
dbPath: '',
88
detached: false,
99
additionalArgs: ['-sharedDb'],
1010
javaOpts: '',
1111
installPath: path.join(os.tmpdir(), 'dynamodb-local'),
1212
downloadUrl: 'https://d1ni2b6xgvw0s0.cloudfront.net/v2.x/dynamodb_local_latest.tar.gz', // the official download URL
13-
} satisfies Config
13+
}
14+
15+
export { config }

src/dynamodb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ export const dynamoDb = {
9393
if (response.statusCode !== 200)
9494
return reject(new Error(`Failed to download DynamoDB Local: ${response.statusCode}`))
9595

96-
// @ts-expect-error: Ignoring type error due to external library incompatibility
9796
response
9897
.pipe(zlib.createUnzip())
98+
// @ts-expect-error: Ignoring type error due to external library incompatibility
9999
.pipe(tar.extract({ cwd: config.installPath }))
100100
.on('finish', resolve)
101101
.on('error', reject)

0 commit comments

Comments
 (0)