remult 0.25.6-exp.7 → 0.25.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.25.6-exp.7",
3
+ "version": "0.25.6",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
package/src/context.d.ts CHANGED
@@ -132,8 +132,9 @@ export interface ApiClient {
132
132
  subscriptionClient?: SubscriptionClient;
133
133
  /**
134
134
  * A function that wraps message handling for subscriptions. This is useful for executing some code before
135
- * or after any message arrives from the subscription. For example, in Angular, this can be used to trigger
136
- * a render by calling the `NgZone` run method.
135
+ * or after any message arrives from the subscription.
136
+ * For example, in Angular, to refresh a specific part of the UI,
137
+ * you can call the `NgZone` run method at this time.
137
138
  *
138
139
  * @example
139
140
  * // Angular example
@@ -194,7 +194,7 @@ export interface EntityMetadata<entityType = any> {
194
194
  */
195
195
  readonly dbName: string;
196
196
  /** The options send to the `Entity`'s decorator */
197
- readonly options: EntityOptions<entityType>;
197
+ readonly options: EntityOptions;
198
198
  /** The class type of the entity */
199
199
  readonly entityType: ClassType<entityType>;
200
200
  /** true if the current user is allowed to update an entity instance
@@ -347,7 +347,7 @@ export interface Repository<entityType> {
347
347
  */
348
348
  metadata: EntityMetadata<entityType>;
349
349
  addEventListener(listener: entityEventListener<entityType>): Unsubscribe;
350
- relations: (item: entityType) => RepositoryRelations<entityType>;
350
+ relations(item: entityType): RepositoryRelations<entityType>;
351
351
  }
352
352
  /**
353
353
  * The `LiveQuery` interface represents a live query that allows subscribing to changes in the query results.