1 | import { isOnObject } from './helpers.js';
|
2 | const checkCodec = /*#__PURE__*/ isOnObject('toHex', 'toU8a');
|
3 | const checkRegistry = /*#__PURE__*/ isOnObject('get');
|
4 | export function isCodec(value) {
|
5 | return checkCodec(value) && checkRegistry(value.registry);
|
6 | } |
\ | No newline at end of file |