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
26 lines
826 B
JSON
26 lines
826 B
JSON
{
|
|
"compilerOptions": {
|
|
"declaration": true,
|
|
"module": "NodeNext",
|
|
"target": "esnext",
|
|
"noImplicitAny": true,
|
|
"alwaysStrict": true,
|
|
"strictBindCallApply": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitThis": true,
|
|
"strictFunctionTypes": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitOverride": true,
|
|
"noImplicitReturns": true,
|
|
"outDir": "./dist",
|
|
"esModuleInterop": true,
|
|
"moduleResolution": "NodeNext",
|
|
// skip error: Interface 'WebGL2RenderingContext' incorrectly extends interface 'WebGL2RenderingContextBase'.
|
|
// https://github.com/tensorflow/tfjs/issues/4201
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
],
|
|
} |