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

[Home](./index.md) &gt; [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) &gt; [addLayerToModel](./cascade-layer-name-parser.addlayertomodel.md)

## addLayerToModel() function

**Signature:**

```typescript
export declare function addLayerToModel(layers: Array<LayerName>, currentLayerNames: Array<LayerName>): void;
```

## Parameters

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

Parameter


</th><th>

Type


</th><th>

Description


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

layers


</td><td>

Array&lt;[LayerName](./cascade-layer-name-parser.layername.md)<!-- -->&gt;


</td><td>


</td></tr>
<tr><td>

currentLayerNames


</td><td>

Array&lt;[LayerName](./cascade-layer-name-parser.layername.md)<!-- -->&gt;


</td><td>


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

**Returns:**

void

