0.1.4 • Published 6 months ago

@types/bero v0.1.4

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

Installation

npm install --save @types/bero

Summary

This package contains type definitions for bero (https://github.com/ZER0/bero).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bero.

index.d.ts

// Type definitions for bero 0.1
// Project: https://github.com/ZER0/bero
// Definitions by: Alessandro Rabitti <https://github.com/silversonicaxel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function bem(block?: string, element?: string): bem.Bemmed;
declare function bem(block: string, element: bem.Modifier | undefined): string;
declare function bem(block: string, element: bem.Element, modifier: bem.Modifier): string;

declare namespace bem {
    function join(...arguments: Joiner): Joined;

    type Block = string;

    type Element = string | { [index: string]: any } | Array<string | undefined | boolean>;

    type Modifier = { [index: string]: any } | Array<string | undefined | boolean>;

    type Bemmed = (arg1?: Element | Modifier, arg2?: Modifier) => string | undefined;

    type Joiner = Array<string | undefined | boolean>;

    type Joined = string;
}

export as namespace bem;

export = bem;

Additional Details

  • Last updated: Fri, 28 May 2021 12:31:27 GMT
  • Dependencies: none
  • Global values: bem

Credits

These definitions were written by Alessandro Rabitti.

0.1.4

6 months ago

0.1.3

7 months ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago