textlint
Version:
The pluggable linting tool for text and markdown.
29 lines • 1.21 kB
TypeScript
export declare class TextLintModuleMapper {
/**
* create entities from rules/rulesConfig and prefix
* entities is a array which contain [key, value]
* it just create entity without normalization
* see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
* @param {Object} pluginRules an object is like "rules" or "rulesConfig" of plugin
* @param {string} prefixKey prefix key is plugin name or preset name
* @returns {[string, any][]}
*/
static createEntities(pluginRules: {
[index: string]: any;
}, prefixKey: string): [string, any][];
/**
* create an object from rules/rulesConfig and prefix
* the object shape is { key: value, key2: value }
*
* it just create object without normalization
* @param {Object} pluginRules an object is like "rules" or "rulesConfig" of plugin
* @param {string} prefixKey prefix key is plugin name or preset name
* @returns {Object}
*/
static createMappedObject(pluginRules: {
[index: string]: any;
}, prefixKey: string): {
[index: string]: any;
};
}
//# sourceMappingURL=textlint-module-mapper.d.ts.map