UNPKG

nxkit

Version:

This is a collection of tools, independent of any other libraries

12 lines (11 loc) 423 B
declare type Topic = [string, number]; /** * Validate an array of topics to see if any of them is valid or not * @param {Array} topics - Array of topics * @returns {String} If the topics is valid, returns null. Otherwise, returns the invalid one */ declare function validateTopics(topics: Topic[]): string | undefined; declare const _default: { validateTopics: typeof validateTopics; }; export default _default;