mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-07-22 13:33:39 -04:00
add typescript type to var
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user