add typescript type to var

This commit is contained in:
seriousm4x
2023-10-02 01:21:19 +02:00
parent 406f3cc28d
commit f521e6dff8

View File

@@ -23,7 +23,7 @@
// create/update all ports
let portIds: string[] = [];
await Promise.all(
device.expand.ports.map(async (port) => {
device.expand.ports.map(async (port: Port) => {
if (port.id === undefined) {
const data = await createPort(port as Port);
if (data === undefined) return;