Skip to content

Commit

Permalink
Remove bluetooth device type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Nov 6, 2024
1 parent 9ad7ecd commit 42ecc2a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/snaps-sdk/src/types/device.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import type { Struct } from '@metamask/superstruct';
import { literal, refine, string, union } from '@metamask/superstruct';
import { literal, refine, string } from '@metamask/superstruct';

import type { Describe } from '../internals';

/**
* The type of the device.
* The type of the device. Currently, only `hid` is supported.
*/
export type DeviceType = 'hid' | 'bluetooth';
export type DeviceType = 'hid';

/**
* A struct that represents the `DeviceType` type.
*/
export const DeviceTypeStruct: Describe<DeviceType> = union([
literal('hid'),
literal('bluetooth'),
]);
export const DeviceTypeStruct: Describe<DeviceType> = literal('hid');

/**
* The ID of the device. It consists of the type of the device, the vendor ID,
Expand Down

0 comments on commit 42ecc2a

Please sign in to comment.