MCPcopy Create free account
hub / github.com/angular/angular / unwrapSignal

Function unwrapSignal

devtools/projects/ng-devtools-backend/src/lib/utils.ts:57–67  ·  view source on GitHub ↗
(s: any)

Source from the content-addressed store, hash-verified

55}
56
57export function unwrapSignal(s: any): any {
58 if (!isSignal(s)) {
59 return s;
60 }
61
62 const {error, value} = safelyReadSignalValue(s);
63 if (error) {
64 return;
65 }
66 return value;
67}

Callers 8

getNestedDescriptorValueFunction · 0.90
getLevelDescriptorValueFunction · 0.90
nestedSerializerFunction · 0.90
serializeDirectiveStateFunction · 0.90
getKeysFunction · 0.90
logToConsoleFunction · 0.90

Calls 2

safelyReadSignalValueFunction · 0.85
isSignalFunction · 0.70

Tested by

no test coverage detected