Fable
Fable copied to clipboard
`let mutable private` used with JS import generate wrong JavaScript code
Description
open Fable.Core.JsInterop
type ToastrOptions =
abstract Thing : string
[<RequireQualifiedAccess>]
module Toastr =
let mutable private theOptions: ToastrOptions =
//()
import "options" "toastr"
import { options } from "toastr";
export const Toastr_theOptions = options;
Toastr_theOptions should not be a const (immutable) but a let.
Related information
- Fable version: 4.20.0
- Operating system