1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 13× 13× | /** * Class representing DataSignature * @class DataSignature */ class DataSignature { /** * creates new DataSignature object * @param {string} key * @param {function} importModule */ constructor(key, importModule) { this.key = (typeof key === 'string') ? key : null; this.importModule = (this.key && typeof importModule === 'function') ? importModule : null; } } export { DataSignature, }; |