# getDefectSummary

Wafer map: per-class defect summary (`null` on other types).

Canonical: https://chart.syidax.com/docs/methods/getDefectSummary/

<a id="definition"></a>

## Definition

```typescript
getDefectSummary(): Promise<{ total: number; offWafer: number; byClass: Array<{ key: string; count: number }> } | null>
```

Return type: `Promise<{ total: number; offWafer: number; byClass: Array<{ key: string; count: number }> } | null>`. Call the method after element registration and await its Promise result.

<a id="related"></a>

## Related charts

- [sy-wafer-map](https://chart.syidax.com/docs/components/wafer-map.md#method-getDefectSummary)
