# type-array-includes-more

> [![GitHub Actions CI](https://github.com/LumaKernel/type-array-includes-more/workflows/GitHub%20Actions%20CI/badge.svg)](https://github.com/LumaKernel/type-array-includes-more/actions?query=workflow%3A%22GitHub+Actions+CI%22)

Latest version **1.0.0** (published 2020-05-31) · public domain license · 0 weekly downloads

## Install

```sh
npm install type-array-includes-more
pnpm add type-array-includes-more
yarn add type-array-includes-more
bun add type-array-includes-more
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-31 |
| First published | 2020-05-31 |
| Weekly downloads | 0 |
| License | public domain |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luma |
| Maintainers | lumax |

## Links

- npm: https://www.npmjs.com/package/type-array-includes-more
- npm.io page: https://npm.io/package/type-array-includes-more

## Recent versions

- 1.0.0 (latest) — 2020-05-31
- 0.0.0 — 2020-05-31

## README

# Type Array#includes more

[![GitHub Actions CI](https://github.com/LumaKernel/type-array-includes-more/workflows/GitHub%20Actions%20CI/badge.svg)](https://github.com/LumaKernel/type-array-includes-more/actions?query=workflow%3A%22GitHub+Actions+CI%22)

Cool overrideing Array#include 

```typescript
const tag: string = getTag();
const arr = ["a", "div"] as const
if (arr.includes(tag)) { // 😒 Error: Argument of type 'string' is not...
  tag;
}

// After installing this....
if (arr.includes(tag)) {
  tag; // 😁 string , and also known as "a" | "div"
}

```

## Installation

```bash
npm i -D type-array-includes-more
```

## Usage

Update your `tsconfig.json` like below.

```diff
 {
   "compilerOptions": {
     "strict": true,
     "lib": ["es2019"],
+    "typeRoots": [
+       "node_modules/@types",
+       "node_modules/type-array-includes-more"
+    ]
   }
 }
```


## Contributing

Feel free to customize.
This is distributed under public domain.

---
_Source: https://npm.io/package/type-array-includes-more · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
