-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert unresolved type reference in Union to obj
- Loading branch information
1 parent
e471620
commit 2b99a6a
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class Dayjs { | ||
constructor(); | ||
|
||
locale(preset: string | ILocale): Dayjs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module rec Glutinum | ||
|
||
(***) | ||
#r "nuget: Fable.Core" | ||
(***) | ||
|
||
open Fable.Core | ||
open System | ||
|
||
[<Erase>] | ||
type Exports = | ||
[<Import("Dayjs", "module"); EmitConstructor>] | ||
static member Dayjs () : Dayjs = nativeOnly | ||
|
||
[<AllowNullLiteral>] | ||
type Dayjs = | ||
abstract member locale: preset: U2<string, obj> -> Dayjs |