Skip to content

How to handle array of string? #13

@Saviio

Description

@Saviio

It looks like this module cannot to convert the data as string[]? Otherwise am I just miss something?

let's say I have some data like this:

let data = [
  {
    id: 1,
    foo: 'foo'
  },
  {
    id: 1,
    foo: 'bar'
  },
  {
    id: 2,
    foo: 'baz'
  }
]

my question is how to make a definition so that it can be used to convert the data like this below.

[
  {
    id: 1,
    foo: ['foo', 'bar']
  },
  {
   id: 2,
   foo: ['baz']
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions