# @types/better-bem

> TypeScript definitions for better-bem

Latest version **1.1.3** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/better-bem
pnpm add @types/better-bem
yarn add @types/better-bem
bun add @types/better-bem
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-11-06 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51375 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/better-bem
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/better-bem
- npm.io page: https://npm.io/package/@types/better-bem

## Recent versions

- 1.1.3 (latest) — 2023-11-06
- 1.1.1 (ts3.9) — 2021-12-23
- 1.1.2 — 2023-10-17
- 1.1.0 — 2021-05-24

## README

# Installation
> `npm install --save @types/better-bem`

# Summary
This package contains type definitions for better-bem (https://github.com/LuudJacobs/better-bem#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/better-bem.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/better-bem/index.d.ts)
````ts
// Definition taken from:
// https://github.com/LuudJacobs/better-bem#classname-parameter-usage
type Parameter = string | Record<string, any>;

export type BEMParameter = Parameter | Parameter[];

export interface BEMClass {
    cn: string;
    mod: (modifiers: BEMParameter) => BEMClass;
    el: (element: BEMParameter) => BEMClass;
}

declare function bem(
    classNames?: BEMParameter,
    mods?: BEMParameter,
    classNameMap?: Record<string, string>,
    strict?: boolean,
    glue?: Record<string, string>,
): BEMClass;

export default bem;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: none

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/better-bem · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
