# @types/stylenames

> TypeScript definitions for stylenames

Latest version **1.1.3** (published 2024-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/stylenames
pnpm add @types/stylenames
yarn add @types/stylenames
bun add @types/stylenames
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2024-10-04 |
| First published | 2018-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.3 (latest) — 2024-10-04
- 1.1.2 (ts4.7) — 2023-11-07
- 1.1.0 (ts3.0) — 2018-10-19
- 1.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/stylenames`

# Summary
This package contains type definitions for stylenames (https://github.com/kmathmann/stylenames).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stylenames.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stylenames/index.d.ts)
````ts
declare namespace styleNames {
    type StyleValueConditionFunction = () => boolean | null | undefined;

    type StyleValueObject = Record<string | number, boolean | StyleValueConditionFunction>;

    type StyleValue = null | undefined | string | StyleValueObject;

    type StyleObject = Partial<Record<keyof CSSStyleDeclaration, StyleValue>>;
}

declare function styleNames(styles: styleNames.StyleObject): string;

export = styleNames;

````

### Additional Details
 * Last updated: Fri, 04 Oct 2024 16:42:27 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ben Grynhaus](https://github.com/bengry).

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