Skip to content

Commit 1907999

Browse files
Infer type
1 parent cfe92ac commit 1907999

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/snaps-sdk/src/types/origin.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
import type { Infer } from '@metamask/superstruct';
12
import { object, string } from '@metamask/superstruct';
23

3-
export type OriginMetadata = {
4-
transport: string;
5-
selfReportedOrigin: string;
6-
};
4+
export type OriginMetadata = Infer<typeof OriginMetadataStruct>;
75

86
export const OriginMetadataStruct = object({
97
transport: string(),

0 commit comments

Comments
 (0)