---
title: "SemanticDiffOptions: interface in Tooling, TypeShade API"
description: "SemanticDiffOptions, an interface in Tooling. Options for semanticDiff."
url: https://typeshade.dev/api/semanticdiffoptions/
language: en
---

# `SemanticDiffOptions`

Interface in Tooling

Options for semanticDiff.

`import type { SemanticDiffOptions } from 'typeshade'`

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

## Syntax

```ts
interface SemanticDiffOptions {
  readonly ignore?: readonly SemanticAspect[];
  readonly transforms?: readonly EmitPlugin[];
}
```

## Instance properties

**`ignore` optional read only `readonly SemanticAspect[]`**

Axes to disregard. Defaults to `['names', 'declOrder']`. Pass `[]` to compare identifier spelling and declaration order too.

**`transforms` optional read only `readonly EmitPlugin[]`**

Plugins declared as intentionally applied to `b`. Pass the same plugin array your production emit call uses, for example `[inline(), ...obfuscate()]`. Each plugin’s `transformIR` is applied to `a` in order, and every diff line the applied transform accounts for moves out of the four buckets into [`ClassifiedSemanticDiff.explained`](https://typeshade.dev/api/classifiedsemanticdiff/), attributed to that plugin. Differences no declared transform explains stay in the buckets, so a regression cannot hide behind a declaration. Text-stage plugins (`minify`, `aliasTypes`, `prune`) contribute nothing here, because the comparison never sees emitted text.

## See also

- [`semanticDiff`](https://typeshade.dev/api/semanticdiff/)
- [`ClassifiedSemanticDiff`](https://typeshade.dev/api/classifiedsemanticdiff/)

## Source

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