MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / isDefined

Function isDefined

src/commands/edge/drivers/prune.ts:46–46  ·  view source on GitHub ↗
(item?: string)

Source from the content-addressed store, hash-verified

44
45 const installedDrivers = await command.client.hubdevices.listInstalled(hubId)
46 const isDefined = (item?: string): item is string => item != null
47 const inUseDriverIds = (await getDriverDevices(command.client))
48 .map(info => info.driverId)
49 .filter(isDefined)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected