import * as neataptic from "neataptic" export const allConnectionNames = [ "ALL_TO_ALL", "ALL_TO_ELSE", "ONE_TO_ONE", ] as const export type ConnectionName = typeof allConnectionNames[number] export type Connection = {name: ConnectionName} export const ALL_TO_ALL: Connection = neataptic.methods.connection.ALL_TO_ALL export const ALL_TO_ELSE: Connection = neataptic.methods.connection.ALL_TO_ELSE export const ONE_TO_ONE: Connection = neataptic.methods.connection.ONE_TO_ONE export function getConnection(name: ConnectionName): Connection { return neataptic.methods.connection[name] }