中文
← Errors

F_SYSTEM_INVALID_OPTION_TYPE

Invalid option type

A field decorator does not match the property's emitted runtime type.

Updated

Reproduction

@Value() accepts only properties whose emitted runtime type is String or Number:

src/options.ts
import { Value } from 'func'

class Options {
  @Value()
  tags: string[] = []
}

How to fix it

Use @Flag() for a boolean option, @ArrayString() for string[], or @ArrayNumber() for number[]. Otherwise, change the property declaration to a supported scalar type:

src/options.ts
import { ArrayString } from 'func'

class Options {
  @ArrayString()
  tags: string[] = []
}