Skip to content

Commit

Permalink
fix(react): fix incorrect dts in useFieldSchema (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjkcai committed Oct 26, 2021
1 parent fada235 commit e878103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/hooks/useFieldSchema.ts
@@ -1,6 +1,7 @@
import { useContext } from 'react'
import { SchemaContext } from '../shared'
import { Schema } from '@formily/json-schema'

export const useFieldSchema = () => {
export const useFieldSchema = (): Schema => {
return useContext(SchemaContext)
}

0 comments on commit e878103

Please sign in to comment.