|
@@ -2,6 +2,6 @@ import { BaseFormApi } from '@douyinfe/semi-foundation/form/interface';
|
|
import React, { useContext } from 'react';
|
|
import React, { useContext } from 'react';
|
|
import { FormApiContext } from '../context';
|
|
import { FormApiContext } from '../context';
|
|
|
|
|
|
-export default function useFormApi<T extends Record<string, any> = any >() {
|
|
|
|
|
|
+export default function useFormApi<T extends Record<string, any> = any>() {
|
|
return useContext<BaseFormApi<T>>(FormApiContext);
|
|
return useContext<BaseFormApi<T>>(FormApiContext);
|
|
}
|
|
}
|