Skip to content

Commit 9ee6dce

Browse files
reconfig WIT deps
1 parent fbe3feb commit 9ee6dce

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

crates/seed-keeper-wit-ui/wit/in.wit

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package seed-keeper:wit-ui@0.1.0;
2+
3+
interface wurbo-in {
4+
5+
use wurbo-types.{listen-details};
6+
7+
// Add an event listener to the given element
8+
addeventlistener: func(details: listen-details);
9+
10+
}

crates/seed-keeper-wit-ui/wit/out.wit

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package seed-keeper:wit-ui@0.1.0;
2+
3+
interface wurbo-out {
4+
5+
use wurbo-types.{context};
6+
7+
// renders the initial Web component with the given data
8+
render: func(ctx: context) -> result<string, string>;
9+
10+
// activate listening
11+
activate: func();
12+
}
13+

crates/seed-keeper-wit-ui/wit/wurbo.wit renamed to crates/seed-keeper-wit-ui/wit/types.wit

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package seed-keeper:wit-ui@0.1.0;
2+
13
interface wurbo-types {
24

35
// Details required in order to add an event listener to an element
@@ -45,23 +47,3 @@ interface wurbo-types {
4547
}
4648

4749
}
48-
49-
interface wurbo-in {
50-
51-
use wurbo-types.{listen-details};
52-
53-
// Add an event listener to the given element
54-
addeventlistener: func(details: listen-details);
55-
56-
}
57-
58-
interface wurbo-out {
59-
60-
use wurbo-types.{context};
61-
62-
// renders the initial Web component with the given data
63-
render: func(ctx: context) -> result<string, string>;
64-
65-
// activate listening
66-
activate: func();
67-
}

0 commit comments

Comments
 (0)