Skip to content

Commit

Permalink
upgrade deps (except expect-type, v0.15.0 still seems to work best fo…
Browse files Browse the repository at this point in the history
…r my use cases), add notes about the two issues affected (microsoft/TypeScript#52267 and mmkal/expect-type#34)
  • Loading branch information
conorbrandon committed Dec 29, 2023
1 parent 2f7cee8 commit a55b9cc
Show file tree
Hide file tree
Showing 4 changed files with 957 additions and 1,096 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@
},
"dependencies": {},
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3",
"@aws-sdk/lib-dynamodb": "^3",
"@types/jest": "^29",
"@aws-sdk/client-dynamodb": "^3.481.0",
"@aws-sdk/lib-dynamodb": "^3.481.0",
"@types/jest": "^29.5.11",
"@types/node": "^14",
"@typescript-eslint/eslint-plugin": "^5",
"@typescript-eslint/parser": "^5",
"@typescript/analyze-trace": "^0",
"aws-sdk": "^2",
"eslint": "^8",
"expect-type": "^0.15.0",
"jest": "^29",
"prettier": "^3",
"ts-jest": "^29",
"ts-node": "^10.9.1",
"typescript": "^5.1.3",
"zod": "^3"
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@typescript/analyze-trace": "^0.10.1",
"aws-sdk": "^2.1527.0",
"eslint": "^8.56.0",
"expect-type": "0.15.0",
"jest": "^29.7.0",
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"zod": "^3.22.4"
},
"scripts": {
"build": "rm -rf dist && yarn tsc",
Expand Down
3 changes: 2 additions & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ describe('createStrict*', () => {
wack: {
odd: 0,
modulo: '%',
// @ts-expect-error this is so annoying, it's not erroring for the updateSimpleSET call because of https://github.com/microsoft/TypeScript/issues/52267
// @ts-expect-error add extra property to test DeepValidateShapev2
extra: null
},
peculiar: ['', null]
Expand All @@ -320,6 +320,7 @@ describe('createStrict*', () => {
} as const satisfies t;

const updateSimpleSETCICDSmaller = tsDdb.createStrictUpdateSimpleSET(CiCdTable.name)<CICDSmaller>();
// @ts-expect-error TS version 5.3.2 correctly errors on this as it should (tracked here: https://github.com/microsoft/TypeScript/issues/52267)
const { Attributes: simpleUpdated } = await updateSimpleSETCICDSmaller({
Key,
Item: simpleUpdateItem,
Expand Down
2 changes: 1 addition & 1 deletion tests/pe2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ myWackySet.values`;
"2": boolean;
} | undefined;
}>();
// @ts-expect-error 2 should be "2" per the type above
// @ts-expect-error 2 should be "2" per the type above (see https://github.com/mmkal/expect-type/issues/34)
expectTypeOf<test3>().toEqualTypeOf<{
foo: {
1: boolean;
Expand Down
Loading

0 comments on commit a55b9cc

Please sign in to comment.