flatten-anything icon indicating copy to clipboard operation
flatten-anything copied to clipboard

Return types ?

Open stychu opened this issue 1 year ago • 1 comments

Will this ever support full typescript return typings?

import { flatten } from 'flatten-anything'

const target = { name: 'Ho-oh', types: { fire: true, flying: true } }as const

const ads= flatten(target)

type of ads = any <---- I would expect types of the values to by correctly inferred.

stychu avatar Sep 10 '24 15:09 stychu

PRs welcome!

mesqueeb avatar Sep 15 '24 06:09 mesqueeb