Documentation
Preparing search index...
@sdk/asset-core
AssetCoreMapper
ArtifactMapper
Variable ArtifactMapper
Const
ArtifactMapper
:
{
assetArtifactCategoryFromApi
:
(
artifact
:
Pick
<
AssetArtifactFragment
,
"dataCategory"
|
"addresses"
>
,
)
=>
undefined
|
AssetArtifactCategory
;
assetArtifactCategoryToApi
:
(
dataCategory
:
AssetArtifactCategory
,
)
=>
DataCategoryEnum
;
}
= ...
Type declaration
assetArtifactCategoryFromApi
:
(
artifact
:
Pick
<
AssetArtifactFragment
,
"dataCategory"
|
"addresses"
>
,
)
=>
undefined
|
AssetArtifactCategory
Translate the artifact type from the API into something we can use, ignore the rest.
assetArtifactCategoryToApi
:
(
dataCategory
:
AssetArtifactCategory
)
=>
DataCategoryEnum
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Translate the artifact type from the API into something we can use, ignore the rest.