You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past, I know that when doing #29 some unwrapping of union type arguments I add to remove or add others version of the method to have access to the full API and make F# happy.
For the example, used in this issue we should in theory be able to remove the method which is subset of the other one:
[<AllowNullLiteral>]
type Logger =
- abstract member log: value: string * ?prefix: string -> unit
abstract member log: value: string * ?prefix: string * ?time: bool -> unit
Example of npm package using this features:
The text was updated successfully, but these errors were encountered:
TypeScript documentation:
translates into
However this is causing issues when trying to consume the API from F#.
In the past, I know that when doing #29 some unwrapping of union type arguments I add to remove or add others version of the method to have access to the full API and make F# happy.
For the example, used in this issue we should in theory be able to remove the method which is subset of the other one:
[<AllowNullLiteral>] type Logger = - abstract member log: value: string * ?prefix: string -> unit abstract member log: value: string * ?prefix: string * ?time: bool -> unit
Example of npm package using this features:
The text was updated successfully, but these errors were encountered: