Skip to content

Commit

Permalink
fix(form-builder): import HiddenOption directly from @sanity/types
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Aug 25, 2021
1 parent aec1afe commit 659b695
Showing 1 changed file with 1 addition and 3 deletions.
@@ -1,15 +1,13 @@
import React, {useMemo, useRef} from 'react'
import {
BaseSchemaType,
HiddenOption,
HiddenOptionCallbackContext,
HiddenOptionCallback,
SanityDocument,
} from '@sanity/types'

import withDocument from '../../utils/withDocument'

type HiddenOption = BaseSchemaType['hidden']

function isThenable(value: any) {
return typeof value?.then === 'function'
}
Expand Down

0 comments on commit 659b695

Please sign in to comment.