1.3.4 • Published 6 months ago
@types/b_ v1.3.4
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
// Type definitions for b_ 1.3
// Project: https://github.com/azproduction/b_
// Definitions by: Vasya Aksyonov <https://github.com/outring>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Wed, 07 Jul 2021 21:44:44 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Vasya Aksyonov.