@types/b_
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

Installation

npm install --save @types/b_

Summary

This package contains type definitions for b_ (https://github.com/azproduction/b_).

Details

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

index.d.ts

interface Options {
    tailSpace?: string | undefined;
    elementSeparator?: string | undefined;
    modSeparator?: string | undefined;
    modValueSeparator?: string | undefined;
    classSeparator?: string | undefined;
    isFullModifier?: boolean | undefined;
    isFullBoolValue?: boolean | undefined;
}

interface Mods {
    [name: string]: any;
}

interface Formatter {
    (block: string, mods?: Mods): string;
    (block: string, elem: string, mods?: Mods): string;

    with(block: string): BlockFormatter;
    with(block: string, elem: string): ElemFormatter;

    lock(block: string): BlockFormatter;
    lock(block: string, elem: string): ElemFormatter;

    B(options: Options): Formatter;
}

interface BlockFormatter {
    (mods?: Mods): string;
    (elem: string, mods?: Mods): string;
}

type ElemFormatter = (mods?: Mods) => string;

declare const formatter: Formatter;
export = formatter;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Vasya Aksyonov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/b_

Weekly Downloads

411

Version

1.3.4

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • types