import Vue from 'vue';
// TODO replace with `import { ref } from 'vue'` once composition-api is built into vue@^2.
function reactive(obj) {
    return Vue.observable(obj);
}
var RefKey = 'RefKey';
export function ref(raw) {
    var _a;
    var value = reactive((_a = {}, _a[RefKey] = raw, _a));
    Object.defineProperty(value, 'value', {
        enumerable: true,
        configurable: true,
        get: function () { return value[RefKey]; },
        set: function (v) { return (value[RefKey] = v); },
    });
    return value;
}
//# sourceMappingURL=ref.js.map