fable-compiler / fable-compiler.github.io

Fable web site
https://fable.io
23 stars 63 forks source link

Documents `NamedParams` attributes for Python #186

Open MangelMaxime opened 5 months ago

MangelMaxime commented 5 months ago
module Json =

    [<Erase>]
    type IExports =
        [<NamedParams(1)>]
        abstract dumps:
            obj: obj * ?separators: string array * ?indent: int -> string

    [<ImportAll("json")>]
    let json: IExports = nativeOnly

    [<Import("JSONDecodeError", "json")>]
    type JSONDecodeError() =
        inherit Exception()