UNPKG

node-pg-migrate

Version:

PostgreSQL database migration management tool for node.js

9 lines (7 loc) 256 B
/** * If the given value is an array, a copy of it is returned. Otherwise, the value is wrapped in an array. * * @param item The item to eventually wrap in an array. */ declare function toArray<T>(item: T | ReadonlyArray<T>): T[]; export { toArray };