opusdev/vector-similarity-api
1
1import { type Document } from './bson';2 3export * from './index';4 5/**6 * @internal7 *8 * Since we don't bundle tslib helpers, we need to polyfill this method.9 *10 * This is used in the generated JS. Adapted from https://github.com/microsoft/TypeScript/blob/aafdfe5b3f76f5c41abeec412ce73c86da94c75f/src/compiler/factory/emitHelpers.ts#L1202.11 */12 13function __exportStar(mod: Document) {14 for (const key of Object.keys(mod)) {15 Object.defineProperty(exports, key, {16 enumerable: true,17 get: function () {18 return mod[key];19 }20 });21 }22}23 