mirror of
https://github.com/koush/scrypted.git
synced 2026-05-06 06:00:29 +01:00
Fixed all 32 errors by: - Adding '| undefined' to return type signatures where functions could return undefined - Changing 'return;' to 'return undefined;' (explicit instead of implicit) - Adding 'return undefined;' at function ends where needed Functions updated: - src/cluster/cluster-setup.ts: getClusterObject, getScryptedClusterMode - src/fetch/index.ts: getHttpFetchAccept - src/infer-defaults.ts: inferRoomFromName, getProvidedRoomOrDefault, getDisplayRoom - src/level.ts: tryGet - src/plugin/plugin-api.ts: getDeviceById - src/plugin/plugin-device.ts: findMethod, findMixin - src/plugin/plugin-host-api.ts: setDeviceProperty - src/plugin/system.ts: getOwnPropertyDescriptor - src/rpc.ts: getIteratorNext - src/runtime.ts: getAccessControlAllowOrigin, getDeviceLogger, getEndpointPluginData, getAccessControls, invalidatePluginDevice, rebuildPluginDeviceMixinTable, installNpm, getPluginHostForDevice, getDevice - src/scrypted-server-main.ts: getDefaultAuthentication, checkValidUserToken - src/services/addresses.ts: getLocalAddresses - src/state.ts: setState