oak-pay-business/src/hooks/useFeatures.ts

9 lines
349 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { useFeatures as useCommonFeatures } from 'oak-frontend-base/es/platforms/web';
import { AFD } from '@project/types/RuntimeCxt';
// react 独有
// 这里因为开发时要引用src而AFD定义中引用lib所以有编译的warning. by Xc
export default function useFeatures() {
// @ts-ignore
return useCommonFeatures<AFD>()
};