Skip to content

Return types ? #20

@stychu

Description

@stychu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions