---
title: "SemanticAspect: type in Tooling, TypeShade API reference"
description: "SemanticAspect, a type in Tooling. An axis of difference semanticDiff can be told to disregard."
url: https://typeshade.dev/api/semanticaspect/
language: en
---

# `SemanticAspect`

Type in Tooling

An axis of difference semanticDiff can be told to disregard.

`import type { SemanticAspect } from 'typeshade'`

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

## Syntax

```ts
type SemanticAspect = 'names' | 'declOrder';
```

## Description

- `'names'`: the spelling of every internal identifier, meaning helper function names, struct names that are not bound as resources, module const names, and function-scoped parameters and locals. These are the same identifiers a renaming pass such as `mangleModule` may rewrite. Names a host binds by are compared either way: entry points and their parameters, binding names, binding struct names, struct field names, override names, and intrinsic call ids.
- `'declOrder'`: the position of a declaration or statement within its list.

## See also

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

## Source

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