PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@polkadot/util/cjs/is

Просмотр файла: childClass.d.ts

import type { Class } from '../types.js';
/**
 * @name isChildClass
 * @summary Tests if the child extends the parent Class
 * @description
 * Checks to see if the child Class extends the parent Class
 * @example
 * <BR>
 *
 * ```javascript
 * import { isChildClass } from '@polkadot/util';
 *
 * console.log('isChildClass', isChildClass(BN, BN); // => true
 * console.log('isChildClass', isChildClass(BN, Uint8Array); // => false
 * ```
 */
export declare function isChildClass<P extends Class>(Parent: P, Child?: unknown): Child is P;

Выполнить команду


Для локальной разработки. Не используйте в интернете!