Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,069 changes: 2,888 additions & 181 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ packages:
- 'templates/svelte-ts'
- 'templates/angular-ts'
- 'templates/nuxt-ts'
- 'templates/remix-ts'
- 'templates/bun-ts'
- 'modules/benchmarks-ts'
- 'modules/module-test-ts'
- 'templates/chat-react-ts/spacetimedb'
Expand Down
2 changes: 1 addition & 1 deletion templates/basic-ts/spacetimedb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { schema, table, t } from 'spacetimedb/server';

const spacetimedb = schema({
person: table(
{},
{ public: true },
{
name: t.string(),
}
Expand Down
12 changes: 11 additions & 1 deletion templates/basic-ts/src/module_bindings/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions templates/basic-ts/src/module_bindings/person_table.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/browser-ts/spacetimedb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { schema, table, t } from 'spacetimedb/server';

const spacetimedb = schema({
person: table(
{},
{ public: true },
{
name: t.string(),
}
Expand Down
12 changes: 11 additions & 1 deletion templates/browser-ts/src/module_bindings/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions templates/browser-ts/src/module_bindings/person_table.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/bun-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"devDependencies": {
"@types/bun": "latest",
"bun": "^1.3.2",
"typescript": "~5.6.2"
}
}
2 changes: 1 addition & 1 deletion templates/bun-ts/spacetimedb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { schema, table, t } from 'spacetimedb/server';

const spacetimedb = schema({
person: table(
{},
{ public: true },
{
name: t.string(),
}
Expand Down
2 changes: 1 addition & 1 deletion templates/bun-ts/src/module_bindings/add_reducer.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 35 additions & 15 deletions templates/bun-ts/src/module_bindings/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions templates/bun-ts/src/module_bindings/person_table.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/bun-ts/src/module_bindings/say_hello_reducer.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions templates/bun-ts/src/module_bindings/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions templates/bun-ts/src/module_bindings/types/procedures.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions templates/bun-ts/src/module_bindings/types/reducers.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/deno-ts/spacetimedb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { schema, table, t } from 'spacetimedb/server';

const spacetimedb = schema({
person: table(
{},
{ public: true },
{
name: t.string(),
}
Expand Down
12 changes: 11 additions & 1 deletion templates/deno-ts/src/module_bindings/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions templates/deno-ts/src/module_bindings/person_table.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion templates/nextjs-ts/lib/spacetimedb-server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DbConnection, Person, tables } from '../src/module_bindings';
import { DbConnection, tables } from '../src/module_bindings';
import { Person } from '../src/module_bindings/types';
import type { Infer } from 'spacetimedb';

const HOST = process.env.SPACETIMEDB_HOST ?? 'wss://maincloud.spacetimedb.com';
Expand All @@ -19,6 +20,7 @@ export async function fetchPeople(): Promise<PersonData[]> {
reject(new Error('SpacetimeDB connection timeout'));
}, 10000);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const connection = DbConnection.builder()
.withUri(HOST)
.withDatabaseName(DB_NAME)
Expand Down
2 changes: 1 addition & 1 deletion templates/nextjs-ts/spacetimedb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { schema, table, t } from 'spacetimedb/server';

const spacetimedb = schema({
person: table(
{},
{ public: true },
{
name: t.string(),
}
Expand Down
12 changes: 11 additions & 1 deletion templates/nextjs-ts/src/module_bindings/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading