0.1.2 • Published 6 months ago

@types/bem-classname v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/bem-classname

Summary

This package contains type definitions for bem-classname (https://github.com/Sunify/bem-classname).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bem-classname.

index.d.ts

// Type definitions for bem-classname 0.1
// Project: https://github.com/Sunify/bem-classname
// Definitions by: pvcresin <https://github.com/pvcresin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

type Block = string;
type Element = string;
type Modifier = string;
type Modifiers = unknown[] | Record<string, unknown>;

declare function bemClassName(
    block: Block,
    elementOrModifiers?: Element | Modifiers,
    modifier?: Modifier | Modifiers,
): string;

export = bemClassName;

Additional Details

  • Last updated: Fri, 16 Jul 2021 00:01:21 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by pvcresin.