<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-tokenizer](./css-tokenizer.md) &gt; [mirrorVariantType](./css-tokenizer.mirrorvarianttype.md)

## mirrorVariantType() function

Get the mirror variant type of a given token type

**Signature:**

```typescript
export declare function mirrorVariantType(type: TokenType): TokenType | null;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

type


</td><td>

[TokenType](./css-tokenizer.tokentype.md)


</td><td>


</td></tr>
</tbody></table>

**Returns:**

[TokenType](./css-tokenizer.tokentype.md) \| null

## Example


```js
const input = TokenType.OpenParen;
const output = mirrorVariantType(input);

console.log(output); // TokenType.CloseParen
```

