---
title: "no any types"
description: "Avoid using the `any` type wherever possible. Use unknown or find the correct type. The only acceptable place to use any is when typecasting for test mocks, and even then it's better to avoid and provide a proper mock."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/no-any-types
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:31:21.562Z
license: CC-BY-4.0
attribution: "no any types — Claudary (https://claudary.paisolsolutions.com/skills/no-any-types)"
---

# no any types
Avoid using the `any` type wherever possible. Use unknown or find the correct type. The only acceptable place to use any is when typecasting for test mocks, and even then it's better to avoid and provide a proper mock.

## Overview

---
globs: "**/*.{ts,tsx}"
---

Avoid using the `any` type wherever possible. Use unknown or find the correct type. The only acceptable place to use any is when typecasting for test mocks, and even then it's better to avoid and provide a proper mock.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/no-any-types) · https://claudary.paisolsolutions.com
