molstar
Version:
A comprehensive macromolecular library.
23 lines • 790 B
JavaScript
/**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author David Sehnal <david.sehnal@gmail.com>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPromiseLike = exports.assertUnreachable = exports.ObjectKeys = void 0;
function ObjectKeys(o) {
return Object.keys(o);
}
exports.ObjectKeys = ObjectKeys;
;
function assertUnreachable(x) {
throw new Error('unreachable');
}
exports.assertUnreachable = assertUnreachable;
function isPromiseLike(x) {
return typeof (x === null || x === void 0 ? void 0 : x.then) === 'function';
}
exports.isPromiseLike = isPromiseLike;
//# sourceMappingURL=type-helpers.js.map
;