You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Write type aliases for EventContext, ReducerEventContext, SubscriptionEventContext, ErrorContext
303
300
writeln!(out);
304
-
writeln!(out,"/** The context type returned in callbacks for all possible events. */");
301
+
writeln!(
302
+
out,
303
+
"/** The context type returned in callbacks for all possible events. */"
304
+
);
305
305
writeln!(
306
306
out,
307
307
"export type EventContext = __EventContextInterface<typeof REMOTE_MODULE>;"
@@ -313,7 +313,10 @@ impl Lang for TypeScript {
313
313
"export type ReducerEventContext = __ReducerEventContextInterface<typeof REMOTE_MODULE>;"
314
314
);
315
315
316
-
writeln!(out,"/** The context type returned in callbacks for subscription events. */");
316
+
writeln!(
317
+
out,
318
+
"/** The context type returned in callbacks for subscription events. */"
319
+
);
317
320
writeln!(
318
321
out,
319
322
"export type SubscriptionEventContext = __SubscriptionEventContextInterface<typeof REMOTE_MODULE>;"
@@ -332,15 +335,24 @@ impl Lang for TypeScript {
332
335
);
333
336
334
337
writeln!(out);
335
-
writeln!(out,"/** Builder class to configure a new subscription to the remote SpacetimeDB instance. */");
338
+
writeln!(
339
+
out,
340
+
"/** Builder class to configure a new subscription to the remote SpacetimeDB instance. */"
341
+
);
336
342
writeln!(
337
343
out,
338
344
"export class SubscriptionBuilder extends __SubscriptionBuilderImpl<typeof REMOTE_MODULE> {{}}"
339
345
);
340
346
341
347
writeln!(out);
342
-
writeln!(out,"/** Builder class to configure a new database connection to the remote SpacetimeDB instance. */");
343
-
writeln!(out,"export class DbConnectionBuilder extends __DbConnectionBuilder<typeof REMOTE_MODULE> {{}}");
348
+
writeln!(
349
+
out,
350
+
"/** Builder class to configure a new database connection to the remote SpacetimeDB instance. */"
351
+
);
352
+
writeln!(
353
+
out,
354
+
"export class DbConnectionBuilder extends __DbConnectionBuilder<typeof REMOTE_MODULE> {{}}"
355
+
);
344
356
345
357
writeln!(out);
346
358
writeln!(out,"/** The typed database connection to manage connections to the remote SpacetimeDB instance. This class has type information specific to the generated module. */");
0 commit comments