Skip to content

Commit

Permalink
Merge branch 'main' into fix/ts18046
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Feb 23, 2024
2 parents d3d99a6 + e27e031 commit d8ce5a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsd",
"version": "0.30.5",
"version": "0.30.6",
"description": "Check TypeScript type definitions",
"license": "MIT",
"repository": "tsdjs/tsd",
Expand Down
1 change: 1 addition & 0 deletions source/lib/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const expectErrorDiagnosticCodesToIgnore = new Set<DiagnosticCode>([
DiagnosticCode.RuntimeWillInvokeDecoratorWithXArgumentsButDecoratorExpectsY,
DiagnosticCode.RuntimeWillInvokeDecoratorWithXArgumentsButDecoratorExpectsAtLeastY,
DiagnosticCode.AcceptsTooFewArgumentsToBeUsedAsDecoratorHere,
DiagnosticCode.PropertyDoesNotExistOnTypeDidYouMean,
DiagnosticCode.ErrorIsOfTypeUnknown,
]);

Expand Down
1 change: 1 addition & 0 deletions source/lib/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export enum DiagnosticCode {
PropertyDoesNotExistOnType = 2339,
ArgumentTypeIsNotAssignableToParameterType = 2345,
CannotAssignToReadOnlyProperty = 2540,
PropertyDoesNotExistOnTypeDidYouMean = 2551,
ExpectedArgumentsButGotOther = 2554,
ExpectedAtLeastArgumentsButGotOther = 2555,
TypeHasNoPropertiesInCommonWith = 2559,
Expand Down
2 changes: 2 additions & 0 deletions source/test/fixtures/expect-error/values/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ expectError(() => {
triggerSuggestion.fooOrBar = 'fooo';
})

expectError(triggerSuggestion.fooOrBars);

expectError(() => {
const foo: ReadonlyKeys = {
bar: 'baz',
Expand Down

0 comments on commit d8ce5a2

Please sign in to comment.