UNPKG

dreamstate

Version:

Store management library based on react context and observers

1 lines 510 B
import{DreamstateError as t}from"../error/DreamstateError.js";import{ContextManager as r}from"../management/ContextManager.js";import{EDreamstateErrorCode as e}from"../../types/error.js";function o(o,n){if(o.prototype instanceof r){for(var a=[],c=o;c!==r;)a.push(n.get(c)),c=Object.getPrototypeOf(c);return a.reduce((function(t,r){return r?t.concat(r):t}),[])}throw new t(e.INCORRECT_PARAMETER,"Failed to collect metadata of class that is not extending ContextManager.")}export{o as collectProtoChainMetadata};