{"map":"{\"version\":3,\"file\":\"_read.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/operators/foundation/_read.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAWH,MAAM,mBAA4D,UAAa;IAC7E,MAAM,CAAC,KAAM,SAAQ,UAAU;QAC7B;;;WAGG;QACH,KAAK;YACH,IAAI,MAAqB,CAAC;YAE1B,IAAI,CAAC,SAAS,CACZ,CAAC,KAAQ;gBACP,MAAM,GAAG,KAAK,CAAC;YACjB,CAAC,CACF,CAAC,WAAW,EAAE,CAAC;YAEhB,MAAM,CAAC,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC\"}","code":"/** @license\r\n *  Copyright 2016 - present The Material Motion Authors. All Rights Reserved.\r\n *\r\n *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n *  use this file except in compliance with the License. You may obtain a copy\r\n *  of the License at\r\n *\r\n *      http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n *  Unless required by applicable law or agreed to in writing, software\r\n *  distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\r\n *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r\n *  License for the specific language governing permissions and limitations\r\n *  under the License.\r\n */\r\nexport function withRead(superclass) {\r\n    return class extends superclass {\r\n        /**\r\n         * Returns the current value of an observable property (e.g. a subject or\r\n         * remembered stream).\r\n         */\r\n        _read() {\r\n            let result;\r\n            this.subscribe((value) => {\r\n                result = value;\r\n            }).unsubscribe();\r\n            return result;\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=_read.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/foundation/_read.d.ts","text":"/** @license\r\n *  Copyright 2016 - present The Material Motion Authors. All Rights Reserved.\r\n *\r\n *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n *  use this file except in compliance with the License. You may obtain a copy\r\n *  of the License at\r\n *\r\n *      http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n *  Unless required by applicable law or agreed to in writing, software\r\n *  distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\r\n *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r\n *  License for the specific language governing permissions and limitations\r\n *  under the License.\r\n */\r\nimport { Constructor, Observable } from '../../types';\r\nexport interface MotionReadable<T> extends Observable<T> {\r\n    _read(): T | undefined;\r\n}\r\nexport declare function withRead<T, S extends Constructor<Observable<T>>>(superclass: S): S & Constructor<MotionReadable<T>>;\r\n"}}
