Skip to content

Commit 1e16451

Browse files
committed
dummy bindings
1 parent f9ebd13 commit 1e16451

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/examples/data-flow.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import { OCamlobject, initializeBindings } from 'o1js';
22

33
await initializeBindings();
4+
5+
let rustValue = OCamlobject.runMeRust();
6+
console.log(rustValue);
7+
48
OCamlobject.runMe();

src/snarky.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ declare namespace Snarky {
6666

6767
declare const OCamlobject: {
6868
runMe: () => void;
69+
runMeRust: () => string;
6970
};
7071

7172
/**

0 commit comments

Comments
 (0)