Sanity Library Reference Docs
Preparing search index...
sanity
index
PreviewConfig
Interface PreviewConfig<Select, PrepareValue>
interface
PreviewConfig
<
Select
extends
Record
<
string
,
string
>
=
Record
<
string
,
string
>
,
PrepareValue
extends
Record
<
keyof
Select
,
any
>
=
Record
<
keyof
Select
,
any
>
,
>
{
prepare
?:
(
value
:
PrepareValue
,
viewOptions
?:
PrepareViewOptions
,
)
=>
PreviewValue
;
select
?:
Select
;
}
Type Parameters
Select
extends
Record
<
string
,
string
>
=
Record
<
string
,
string
>
PrepareValue
extends
Record
<
keyof
Select
,
any
>
=
Record
<
keyof
Select
,
any
>
Index
Properties
prepare?
select?
Properties
Optional
prepare
prepare
?:
(
value
:
PrepareValue
,
viewOptions
?:
PrepareViewOptions
,
)
=>
PreviewValue
Optional
select
select
?:
Select
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
prepare
select
Sanity Library Reference Docs
Loading...