Skip to content

Return type of flatten/unflatten #179

Open
@stychu

Description

How Do i get the result type being properly typed?? Instead I get unknown as a result of flatter/unflatten

unflatten(values);

function unflatten<{
    "locationDetails. id": string;
    "locationDetails. name": string;
    "locationDetails. storeFormat": {
        label: string;
        value: string;
    } | null;
    ... 40 more ...;
}, unknown>(     target: {},     options?: UnflattenOptions): unknown

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions