UNPKG

@airgap/etherlink

Version:

The @airgap/etherlink package is an implementation of the ICoinProtocol interface from @airgap/coinlib-core.

11 lines 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.implementsInterface = void 0; function implementsInterface(object, schema) { if (typeof object !== 'object' || !object) { return false; } return Object.keys(schema).every(function (key) { return schema[key] === 'optional' || key in object; }); } exports.implementsInterface = implementsInterface; //# sourceMappingURL=interface.js.map