Skip to content

Commit

Permalink
fix: fix dynalite types, upgrade dev dynalite version
Browse files Browse the repository at this point in the history
  • Loading branch information
freshollie committed Jul 14, 2021
1 parent 6a92758 commit 9a13fcd
Show file tree
Hide file tree
Showing 4 changed files with 483 additions and 328 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
},
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.1.0",
"@aws-sdk/client-dynamodb": "^3.21.0",
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"@babel/preset-typescript": "^7.12.7",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"lib": ["esnext", "DOM"],
"outDir": "./dist",
"module": "commonjs",
"skipLibCheck": true,
"strict": true,
"esModuleInterop": true,
"sourceMap": true,
Expand Down
8 changes: 3 additions & 5 deletions types/dynalite.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ declare module "dynalite" {
maxItemSizeKb?: number;
}

export class DynaliteServer extends Server {
public close(cb?: (err?: Error) => void): this;
}

function createDynalite(options: DynaliteOptions): DynaliteServer;
function createDynalite(
options: DynaliteOptions
): Server & { close(cb?: (err?: Error) => void | undefined): void };

export default createDynalite;
}

0 comments on commit 9a13fcd

Please sign in to comment.