---
title: "isSemanticallyEqual(): function in Tooling, TypeShade API"
description: "isSemanticallyEqual, a function in Tooling. True when every bucket of d is empty."
url: https://typeshade.dev/api/issemanticallyequal/
language: en
---

# `isSemanticallyEqual()`

Function in Tooling

True when every bucket of d is empty.

`import { isSemanticallyEqual } from 'typeshade'`

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

## Syntax

```ts
const isSemanticallyEqual: (d: SemanticDiff) => boolean
```

## Parameters

**`d` `SemanticDiff`**

## Return value

`boolean`

## Description

`explained` entries do not count, so on a [`ClassifiedSemanticDiff`](https://typeshade.dev/api/classifiedsemanticdiff/) this reads “equal modulo the declared transforms”.

## See also

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

## Source

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