Vinyl
Preparing search index...
@amzn/vinyl-util
patchTargetFromFlags
Function patchTargetFromFlags
patchTargetFromFlags
<
T
extends
object
,
EventMap
,
Flags
>
(
target
:
T
,
flags
:
Flags
,
...
patchEntries
:
readonly
FlagAndPatchEntry
<
T
,
EventMap
,
keyof
Flags
>
[]
,
)
:
PatchedRef
<
T
>
Given a list of [flagKey, patchFactory] tuples, patches the target with patches where flag is true.
Type Parameters
T
extends
object
EventMap
Flags
Parameters
target
:
T
flags
:
Flags
...
patchEntries
:
readonly
FlagAndPatchEntry
<
T
,
EventMap
,
keyof
Flags
>
[]
Returns
PatchedRef
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Vinyl
Loading...
Given a list of [flagKey, patchFactory] tuples, patches the target with patches where flag is true.