UNPKG

get-es-imports-exports

Version:

Recursively get imports and exports for files using ES import/export syntax

5 lines (3 loc) 122 B
const baseObject = { a: 1 }; const test: () => Promise<Object> = async () => ({ ...baseObject, b: 2 }); export { test };