MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / checkStyleName

Function checkStyleName

lib/utilities/markdown-color.js:144–150  ·  view source on GitHub ↗
(renderer, name)

Source from the content-addressed store, hash-verified

142 @param {String} [name]
143*/
144function checkStyleName(renderer, name) {
145 if (typeof renderer[name] === 'function') {
146 return name;
147 } else {
148 throw new SilentError(`The style '${name}' is not supported by the markdown renderer.`);
149 }
150}
151
152/*
153 @param {String} [name]

Callers 1

renderStylesFactoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…