@gtechdoodler/bem-it
Version:
A BEM util to help with consistent element class naming in components.
26 lines • 866 B
TypeScript
export declare type OutputOptions = "default" | "last";
export declare class Output {
private _lastBemIt;
constructor(lastBemIt: BemIt);
get and(): BemIt;
out(option?: OutputOptions): string;
}
export default class BemIt {
private _block;
private _lastBlockObj;
private _fullBem;
constructor(block: string | BemIt);
get blockString(): string;
get peek(): string;
get and(): BemIt;
el(element: string | undefined | null): BemIt;
mod(modifier: string | string[] | object | undefined | null): Output;
out(option?: OutputOptions): string;
}
interface addClassReturn {
before: (bem: BemIt | Output) => string;
after: (bem: BemIt | Output) => string;
}
export declare function addClass(name: string | null | undefined): addClassReturn;
export {};
//# sourceMappingURL=bem-it.d.ts.map