Browse Source

Adjusting script file for new ESLint system

master
Mobius K 2 years ago
parent
commit
2c1655b2ac
  1. 6
      scripts/index.ts

6
scripts/index.ts

@ -2,7 +2,7 @@
// tslint:disable:no-bitwise
// Container for our bluetooth class code
let bluetoothClass: number = 0;
let bluetoothClass = 0;
// Grab references to our DOM elements
const bluetoothClassField: HTMLElement | null = document.getElementById("bluetoothClass");
@ -12,7 +12,7 @@ const checkboxesAndRadios: NodeListOf<HTMLInputElement> = document.querySelector
/**
* Write a hex string of our current Bluetooth class to the input
*/
function updateBluetoothClassField() {
function updateBluetoothClassField(): void {
let hex: string = bluetoothClass.toString(16);
hex = hex.toLocaleUpperCase();
@ -27,7 +27,7 @@ function updateBluetoothClassField() {
/**
* Depending on our selected major device category, hide or show groups of minor devices
*/
function updateBluetoothMinorDeviceFields() {
function updateBluetoothMinorDeviceFields(): void {
// Determine the ID of the selected major device

Loading…
Cancel
Save