/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/taro-platform-harmony-cpp/src/runtime/framework/utils/is.ts
26 строк
552 B
ZakaryCode
feat(harmony): add cpp plugin
13 мар 2025, 16:58
13 мар 2025, 16:58
9a04a67
Код
Авторство
О чём код?
import { isFunction } from '@tarojs/shared' export function isClassComponent (R, component) { const prototype = component.prototype // For React Redux if (component.displayName?.includes('Connect')) return false return ( isFunction(component.render) || !!prototype?.isReactComponent || prototype instanceof R.Component // compat for some others react-like library ) } export { isArray, isBoolean, isBooleanStringLiteral, isFunction, isNull, isNumber, isObject, isString, isUndefined, } from '@tarojs/shared'