import { IPoint } from 'influx' ; export param { { [ name : string ] : string } } tags export function tagsToString ( tags ) { let str = '' ; const keys = Object . keys ( tags ) ; keys . forEach ( ( key , idx ) => ( str += `${ key }='${ tags [ key ] }'${ idx === keys . length - 1 ? '' : ' AND ' }` ) ) ; return str ; }