(target)
| 68 | * Collects annotations from prototypes and stores them on target (instance) |
| 69 | */ |
| 70 | export function collectStoredAnnotations(target): AnnotationsMap<any, any> { |
| 71 | if (!hasProp(target, storedAnnotationsSymbol)) { |
| 72 | // if (__DEV__ && !target[storedAnnotationsSymbol]) { |
| 73 | // die( |
| 74 | // `No annotations were passed to makeObservable, but no decorated members have been found either` |
| 75 | // ) |
| 76 | // } |
| 77 | // We need a copy as we will remove annotation from the list once it's applied. |
| 78 | addHiddenProp(target, storedAnnotationsSymbol, { ...target[storedAnnotationsSymbol] }) |
| 79 | } |
| 80 | return target[storedAnnotationsSymbol] |
| 81 | } |
| 82 | |
| 83 | export function is20223Decorator(context): context is DecoratorContext { |
| 84 | return typeof context == "object" && typeof context["kind"] == "string" |
no test coverage detected
searching dependent graphs…