Sanity Library Reference Docs
Preparing search index...
@sanity/workflow-engine
index
computeDiffEntries
Function computeDiffEntries
computeDiffEntries
<
T
extends
|
Record
<
keyof
T
&
string
,
unknown
>
|
{
description
?:
string
;
fields
?:
FieldEntry
[]
;
groups
?:
Group
[]
;
initialStage
:
string
;
lifecycle
?:
WorkflowLifecycle
;
name
:
string
;
predicates
?:
Record
<
string
,
string
>
;
roleAliases
?:
RoleAliases
;
semantics
?:
Semantic
[]
;
stages
:
Stage
[]
;
start
?:
StartBlock
;
title
:
string
;
}
&
{
[
K
in
string
|
number
|
symbol
]
?:
undefined
}
,
>
(
__namedParameters
:
{
client
:
Pick
<
WorkflowClient
,
"fetch"
>
;
defs
:
T
[]
;
target
:
DeployTarget
;
}
,
)
:
Promise
<
DiffEntry
[]
>
Compare each definition against the latest deployed version of its name.
Type Parameters
T
extends
|
Record
<
keyof
T
&
string
,
unknown
>
|
{
description
?:
string
;
fields
?:
FieldEntry
[]
;
groups
?:
Group
[]
;
initialStage
:
string
;
lifecycle
?:
WorkflowLifecycle
;
name
:
string
;
predicates
?:
Record
<
string
,
string
>
;
roleAliases
?:
RoleAliases
;
semantics
?:
Semantic
[]
;
stages
:
Stage
[]
;
start
?:
StartBlock
;
title
:
string
;
}
&
{
[
K
in
string
|
number
|
symbol
]
?:
undefined
}
Parameters
__namedParameters
:
{
client
:
Pick
<
WorkflowClient
,
"fetch"
>
;
defs
:
T
[]
;
target
:
DeployTarget
}
Returns
Promise
<
DiffEntry
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
Compare each definition against the latest deployed version of its name.