Skip to content

Incomplete TypeScript definitions for cast option in csv-stringify #337

@srmagura

Description

@srmagura

The types say functions provided for the cast option must return string.

export type Cast<T> = (value: T, context: CastingContext) => string

But the docs show that you can return an object with a value key as well as some other options.

I will plan to submit a fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions