src.nth.io/

summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-14 19:19:06 -0500
committerLuke Hoersten <[email protected]>2026-06-14 19:19:06 -0500
commit56cbea1c5dcb068057ea2d32245eaed8a7100d39 (patch)
tree10ddc7064f22903bb8b21e6ea9b921f456f8382e /main
parent30459a0d37d6ec390b36c8309fac7b12cb50de8c (diff)
scrypted: revert to declare-const for SDK names — diagnostic confirmed they're injected
The probe in scrypted/diagnostic.ts confirmed @scrypted/core 0.3.147 injects every name we need (ScryptedDeviceBase, ScryptedDeviceType, ScryptedInterface, systemManager, deviceManager, mediaManager, endpointManager, log, device, require, exports) as top-level scope variables. Notably sdk.ScryptedDeviceBase IS undefined — the classes are separate injections, not properties on the sdk object. So the correct pattern is `declare const X: any` for each (declarations erase at compile time → free identifiers at runtime → bound to the scryptedEval-injected values), not `const X = sdk.X` (which was undefined and tripped "Class extends value undefined").
Diffstat (limited to 'main')
0 files changed, 0 insertions, 0 deletions