File tree Expand file tree Collapse file tree 9 files changed +10
-10
lines changed
snaps-sdk/src/types/handlers Expand file tree Collapse file tree 9 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " zL83HjFa5hofKZgG1lsYhsolTSixKtwUdS2g8iK18uM =" ,
10+ "shasum" : " Xj6puDgrspKYR+BHRcf0vp03qLwS0laPAZ1KztBgglk =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " qg8mFkhE2i4XDz2QmCI9LrWIrn80F/KsfvIiFSHP1vc =" ,
10+ "shasum" : " umssy2xlXevJQlh/v+RU+L5QwF4FJr+WQizX9RsgOGE =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " pEE8JPwz3Urr7sa5EP3C8q6iEhEOYalo7HIv8So0HWo =" ,
10+ "shasum" : " VsNHRvsmcNSIE8NKs3pKP5DZ6JetuWxyafdnkqGYrNE =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " V+8kTcBPZp3cXzElRtior5z0e4OZXisW7oY3TbZ3BIo =" ,
10+ "shasum" : " QzOwwFy2NhbNCCJ8J69ddNXkk5VoZE70NH9nviUDlro =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " I+kz7pvB5o7oyC/2z5LnURYG7TrTHR9+oWueIcsuDyA =" ,
10+ "shasum" : " 7qJ3NR2asUtSBhMG15SkPHGTeGu5eFpa+1bvCZYNjB8 =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " isPAE28NBykLDCeydFGWiovrc9aYyrudj9du9zjgWiM =" ,
10+ "shasum" : " 3QTvYDWz9SP5SuCXOJj9xMNcwGn914x9dgXafSWCduo =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " z5QBU52beVeE8yA3heabwzKZlBGdUq9HQ4f3/ia3byY =" ,
10+ "shasum" : " cgEBLKtGe25kAK63vHw55Stfgeiu82NEvyWoUkH9maA =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snaps.git"
88 },
99 "source" : {
10- "shasum" : " vxFi0vcu6DIa9NSSxqtQvq0e3dy0ZhvhgY3EfPQSkOw =" ,
10+ "shasum" : " 8wvBp+qWyp9M9O5OJkFGl2cc8XRGxvV35oJJre+XIig =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import type { Infer } from '@metamask/superstruct';
22import {
33 number ,
44 assign ,
5- literal ,
65 nullable ,
76 object ,
87 optional ,
@@ -13,6 +12,7 @@ import {
1312} from '@metamask/superstruct' ;
1413import { CaipAssetTypeStruct } from '@metamask/utils' ;
1514
15+ import { typedUnion , literal } from '../../internals' ;
1616import type { InterfaceContext } from '../interface' ;
1717
1818/**
@@ -156,7 +156,7 @@ export const FileUploadEventStruct = assign(
156156 */
157157export type FileUploadEvent = Infer < typeof FileUploadEventStruct > ;
158158
159- export const UserInputEventStruct = union ( [
159+ export const UserInputEventStruct = typedUnion ( [
160160 ButtonClickEventStruct ,
161161 FormSubmitEventStruct ,
162162 InputChangeEventStruct ,
You can’t perform that action at this time.
0 commit comments