Skip to content

Commit f0d406e

Browse files
committed
WIP - adds passing tests
1 parent f822ca8 commit f0d406e

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.d/non_js_ffi-4587.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add `--ffi-exts` compiler option to allow non-JS FFI module implementations

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ If you would prefer to use different terms, please use the section below instead
112112
| [@ncaq](https://github.com/ncaq) | ncaq | [MIT license] |
113113
| [@NickMolloy](https://github.com/NickMolloy) | Nick Molloy | [MIT license] |
114114
| [@nicodelpiano](https://github.com/nicodelpiano) | Nicolas Del Piano | [MIT license] |
115+
| [@noisyscanner](https://github.com/noisyscanner) | Brad Reed | [MIT license] |
115116
| [@noraesae](https://github.com/noraesae) | Hyunje Jun | [MIT license] |
116117
| [@nullobject](https://github.com/nullobject) | Josh Bassett | [MIT license] |
117118
| [@osa1](https://github.com/osa1) | Ömer Sinan Ağacan | [MIT license] |

tests/purs/passing/TSFFI.purs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module Main where
2+
3+
import Prelude
4+
import Effect.Console (log)
5+
6+
foreign import functionName :: String -> String
7+
8+
main = log "Done"

tests/purs/passing/TSFFI.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function functionName(foo: string) {
2+
return foo;
3+
}

0 commit comments

Comments
 (0)