Skip to content

Support string concatenation in string enum #207

@MangelMaxime

Description

@MangelMaxime

Issue created from Glutinum Tool

Glutinum version - 0.13.0-preview

TypeScript

type DevToolPosition = 'inline-' | 'hidden-' | 'eval-' | '';
type DevToolDebugIds = '-debugids' | '';
export type DevTool = 'eval' | `${DevToolPosition}source-map${DevToolDebugIds}`;

FSharp

module rec Glutinum

open Fable.Core
open Fable.Core.JsInterop
open System

[<RequireQualifiedAccess>]
[<StringEnum(CaseRules.None)>]
type DevToolPosition =
    | ``inline-``
    | ``hidden-``
    | ``eval-``
    | 

[<RequireQualifiedAccess>]
[<StringEnum(CaseRules.None)>]
type DevToolDebugIds =
    | ``-debugids``
    | 

[<RequireQualifiedAccess>]
[<StringEnum(CaseRules.None)>]
type DevTool =
    | eval

Problem description

We should either provide all the possible combination or alias the type to a an union type accepting eval as a string and a generic string

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions