Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tsdjs/tsd
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.31.0
Choose a base ref
...
head repository: tsdjs/tsd
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.31.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jun 17, 2024

  1. Add ts2739 to known errors (#216)

    nvie authored Jun 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cc31c6e View commit details
  2. 0.31.1

    sindresorhus committed Jun 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c01c9e0 View commit details
Showing with 5 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −1 source/lib/compiler.ts
  3. +2 −1 source/lib/interfaces.ts
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.31.0",
"version": "0.31.1",
"description": "Check TypeScript type definitions",
"license": "MIT",
"repository": "tsdjs/tsd",
3 changes: 2 additions & 1 deletion source/lib/compiler.ts
Original file line number Diff line number Diff line change
@@ -28,7 +28,8 @@ const expectErrorDiagnosticCodesToIgnore = new Set<DiagnosticCode>([
DiagnosticCode.NoOverloadExpectsCountOfArguments,
DiagnosticCode.NoOverloadExpectsCountOfTypeArguments,
DiagnosticCode.NoOverloadMatches,
DiagnosticCode.Type1IsMissingPropertiesFromType2,
DiagnosticCode.Type1IsMissingPropertiesFromType2Variant1,
DiagnosticCode.Type1IsMissingPropertiesFromType2Variant2,
DiagnosticCode.PropertyMissingInType1ButRequiredInType2,
DiagnosticCode.TypeHasNoPropertiesInCommonWith,
DiagnosticCode.ThisContextOfTypeNotAssignableToMethodOfThisType,
3 changes: 2 additions & 1 deletion source/lib/interfaces.ts
Original file line number Diff line number Diff line change
@@ -58,7 +58,8 @@ export enum DiagnosticCode {
IndexSignatureOnlyPermitsReading = 2542,
NoOverloadExpectsCountOfArguments = 2575,
ThisContextOfTypeNotAssignableToMethodOfThisType = 2684,
Type1IsMissingPropertiesFromType2 = 2740,
Type1IsMissingPropertiesFromType2Variant1 = 2739,
Type1IsMissingPropertiesFromType2Variant2 = 2740,
PropertyMissingInType1ButRequiredInType2 = 2741,
NoOverloadExpectsCountOfTypeArguments = 2743,
NoOverloadMatches = 2769,