We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
original: bem/bem-sdk#179
BemjsonMods = Map<String, String> BemjsonNode = { block: String, elem: ?String, mods: ?BemjsonMods, elemMods: ?BemjsonMods, mix: ?Array<BemjsonNode|String> }; stringifyBemjsonNode(Object|BemjsonNode); parseBemjsonNode(String); // ex const n = parseBemjsonNode("b__e b__e_m_b x x_m_v"); // → BemjsonNode<{ block: 'b', elem: 'e', elemMods: {m: 'b'}, mix: [ BemjsonNode<{ block: 'x', mods: {m: 'v'} }> ] }> n.block; // → 'b' n.mix[0].block; // → 'x' stringifyBemjsonNode(new BemjsonNode({ block: 'b', elem: 'e', elemMods: {m: 'b'}, mix: { block: 'x', mods: {m: '1'}, mix: { elem: 'huem', elemMods: { q: '2' } } } })); // → "b__e b__e_m_b x x_m_1 x__huem x__huem_q_2"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
original: bem/bem-sdk#179
The text was updated successfully, but these errors were encountered: