import { Node } from "./node" import * as neataptic from "neataptic" export interface Connection { from: Node to: Node weight: number gater: null|boolean gain: number } export function create( from: Node, to: Node, weight: number|undefined = undefined ): Connection { return new neataptic.Connection(from, to, weight) } export const classConstructor: ( from: Node, to: Node, weight: number|undefined ) => void = neataptic.Connection