Commit 7677b54
authored
[TS] Export reducers, etc from a module (#4220)
# Description of Changes
Haven't changed `schema()` to accept an object yet, maybe that's for a
followup?
Now everything exported from the module must be exported from the
typescript module.
# Expected complexity level and risk
<!--
How complicated do you think these changes are? Grade on a scale from 1
to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex
change.
This complexity rating applies not only to the complexity apparent in
the diff,
but also to its interactions with existing and future code.
If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning
ways. -->
# Testing
<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->
- [ ] <!-- maybe a test you want to do -->
- [ ] <!-- maybe a test you want a reviewer to do, so they can check it
off when they're satisfied. -->1 parent 41d793f commit 7677b54
94 files changed
Lines changed: 1707 additions & 1219 deletions
File tree
- crates
- bindings-typescript
- src
- lib
- autogen
- sdk/client_api
- server
- test-app/src/module_bindings
- cli
- src/tasks
- core/src/host/v8
- syscall
- docs
- docs
- 00100-intro
- 00100-getting-started
- 00200-quickstarts
- 00300-tutorials
- 00200-core-concepts
- 00100-databases
- 00200-functions
- 00300-reducers
- 00300-tables
- 00500-authentication
- 00300-resources/00100-how-to
- static
- modules
- benchmarks-ts/src
- module-test-ts
- src
- sdk-test-connect-disconnect-ts/src
- sdk-test-procedure-ts
- src
- sdk-test-ts
- src
- templates
- basic-ts
- spacetimedb/src
- src/module_bindings
- types
- chat-react-ts
- spacetimedb
- src
- src/module_bindings
- types
- react-ts
- spacetimedb/src
- src/module_bindings
- types
- svelte-ts/spacetimedb/src
- vue-ts/spacetimedb/src
- tools/xtask-llm-benchmark/src/benchmarks
- basics
- t_000_empty_reducers/answers
- t_001_basic_tables/answers
- t_002_scheduled_table/answers
- t_003_struct_in_table/answers
- t_004_insert/answers
- t_005_update/answers
- t_006_delete/answers
- t_007_crud/answers
- t_008_index_lookup/answers
- t_009_init/answers
- t_010_connect/answers
- t_011_helper_function/answers
- schema
- t_012_spacetime_product_type/answers
- t_013_spacetime_sum_type/answers
- t_014_elementary_columns/answers
- t_015_product_type_columns/answers
- t_016_sum_type_columns/answers
- t_017_scheduled_columns/answers
- t_018_constraints/answers
- t_019_many_to_many/answers
- t_020_ecs/answers
- t_021_multi_column_index/answers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | | - | |
11 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
26 | 61 | | |
27 | 62 | | |
28 | 63 | | |
29 | 64 | | |
30 | 65 | | |
31 | 66 | | |
32 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
33 | 72 | | |
34 | 73 | | |
35 | 74 | | |
| |||
46 | 85 | | |
47 | 86 | | |
48 | 87 | | |
49 | | - | |
| 88 | + | |
50 | 89 | | |
51 | 90 | | |
52 | 91 | | |
| |||
98 | 137 | | |
99 | 138 | | |
100 | 139 | | |
101 | | - | |
| 140 | + | |
| 141 | + | |
102 | 142 | | |
103 | 143 | | |
104 | 144 | | |
| |||
107 | 147 | | |
108 | 148 | | |
109 | 149 | | |
110 | | - | |
| 150 | + | |
| 151 | + | |
111 | 152 | | |
112 | 153 | | |
113 | 154 | | |
| |||
123 | 164 | | |
124 | 165 | | |
125 | 166 | | |
| 167 | + | |
126 | 168 | | |
127 | 169 | | |
128 | 170 | | |
129 | 171 | | |
130 | | - | |
131 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
132 | 177 | | |
133 | 178 | | |
134 | 179 | | |
| |||
150 | 195 | | |
151 | 196 | | |
152 | 197 | | |
153 | | - | |
| 198 | + | |
| 199 | + | |
154 | 200 | | |
155 | 201 | | |
156 | 202 | | |
| |||
0 commit comments