Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit dde2811

Browse files
authored
Fix TypeScript Quickstart wrong import (#349)
1 parent 3b5c091 commit dde2811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sdks/typescript/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ module_bindings
387387
With `spacetime generate` we have generated TypeScript types derived from the types you specified in your module, which we can conveniently use in our client. We've placed these in the `module_bindings` folder. The main entry to the SpacetimeDB API is the `DbConnection`, a type which manages a connection to a remote database. Let's import it and a few other types into our `client/src/App.tsx`.
388388

389389
```tsx
390-
import { DbConnection, ErrorContext, EventContext, Message, User } from './module_bindings';
390+
import { DbConnection, type ErrorContext, type EventContext, Message, User } from './module_bindings';
391391
import { Identity } from '@clockworklabs/spacetimedb-sdk';
392392
```
393393

0 commit comments

Comments
 (0)