Skip to content

Commit c916ea2

Browse files
committed
Ignore ExportAssignment
1 parent 91408e2 commit c916ea2

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,4 @@ ASALocalRun/
339339
fable_modules/
340340
fableBuild/
341341
dist/
342+
*.tmp.fsx

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Added
1616

1717
* Add support for `MethodSignature` on interface ([GH-28](https://github.com/glutinum-org/cli/issues/28]))
18+
* Ignore `ExportAssignment` as we don't know what to do with it yet
1819

1920
## 0.4.0 - 2024-01-08
2021

src/Glutinum.Converter/Reader/Node.fs

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ let readNode (reader: TypeScriptReader) (node: Ts.Node) : GlueType =
2727
| Ts.SyntaxKind.ClassDeclaration ->
2828
reader.ReadClassDeclaration(node :?> Ts.ClassDeclaration)
2929

30+
| Ts.SyntaxKind.ExportAssignment ->
31+
// Don't know what to do with, we handle the case to avoid
32+
// writing a warning in the console
33+
GlueType.Discard
34+
3035
| unsupported ->
3136
printfn
3237
"%s"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export = hello;
2+
3+
declare function hello(): string;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module rec Glutinum
2+
3+
open Fable.Core
4+
open System
5+
6+
[<Erase>]
7+
type Exports =
8+
[<Import("hello", "module")>]
9+
static member hello () : string = nativeOnly
10+
11+
12+
(***)
13+
#r "nuget: Fable.Core"
14+
(***)

0 commit comments

Comments
 (0)