Skip to content

Structural handler arrays should be typed as const #33

@nicholaides

Description

@nicholaides
RuleFoo
  Numeric Alpha -> [$1, $2]

current type: Array<number | string>
but we'd prefer: [number, string]

(Assuming Numeric returns a number and Alpha returns a string)

Same should apply to arrays that aren't top level.

RuleFoo
  Numeric Alpha -> { items: [$1, $2] }

current type: { items: Array<number | string> }
but we'd prefer: { items: [number, string] }

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