---
title: "ExplainedDiffEntry: interface in Tooling, TypeShade API"
description: "ExplainedDiffEntry, an interface in Tooling. One diff line that a declared transform explains…"
url: https://typeshade.dev/api/explaineddiffentry/
language: en
---

# `ExplainedDiffEntry`

Interface in Tooling

One diff line that a declared transform explains: applying transform to the reference side made line disappear from bucket.

`import type { ExplainedDiffEntry } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
interface ExplainedDiffEntry {
  readonly transform: string;
  readonly bucket: SemanticDiffBucket;
  readonly line: string;
}
```

## Description

The line keeps its `-` or `+` prefix. A `-` line is a fact of `a` the transform rewrote away; a `+` line is a fact of `b` the transformed reference now also has. `transform` is the plugin’s `identity ?? name`, the same spelling [`emitIdentity`](https://typeshade.dev/api/emitidentity/) reports.

## Instance properties

**`transform` read only `string`**

**`bucket` read only `SemanticDiffBucket`**

**`line` read only `string`**

## See also

- [`emitIdentity`](https://typeshade.dev/api/emitidentity/)

## Source

[`src/core/semantic-diff.ts`, line 77](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/semantic-diff.ts#L77), at commit af54ddad5
