Skip to content

Commit bfbaeb7

Browse files
committed
fix type
1 parent 528d3f0 commit bfbaeb7

File tree

1 file changed

+2
-1
lines changed
  • packages/snaps-rpc-methods/src/endowments

1 file changed

+2
-1
lines changed

packages/snaps-rpc-methods/src/endowments/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { PermissionConstraint } from '@metamask/permission-controller';
22
import { HandlerType } from '@metamask/snaps-utils';
33
import type { Json } from '@metamask/utils';
44

5+
import type { CaveatMapperFunction } from './caveats';
56
import {
67
createMaxRequestTimeMapper,
78
getMaxRequestTimeCaveatMapper,
@@ -75,7 +76,7 @@ export const endowmentCaveatMappers: Record<
7576
(value: Json) => Pick<PermissionConstraint, 'caveats'>
7677
> = {
7778
[cronjobEndowmentBuilder.targetName]: createMaxRequestTimeMapper(
78-
getCronjobCaveatMapper,
79+
getCronjobCaveatMapper as CaveatMapperFunction,
7980
),
8081
[transactionInsightEndowmentBuilder.targetName]: createMaxRequestTimeMapper(
8182
getTransactionInsightCaveatMapper,

0 commit comments

Comments
 (0)