remult 0.27.2 → 0.27.3
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/README.md +2 -0
- package/package.json +1 -1
- package/src/remult3/remult3.d.ts +2 -2
package/README.md
CHANGED
|
@@ -41,6 +41,8 @@ Remult uses **TypeScript entities** as a single source of truth for: ✅ CRUD +
|
|
|
41
41
|
|
|
42
42
|
**Remult is frontend and backend framework agnostic** and comes with adapters for Express, Fastify, Next.js, Nuxt, SvelteKit, SolidStart, Nest, Koa, Hapi and Hono.
|
|
43
43
|
|
|
44
|
+
> **Want to experience Remult firsthand? [Try our interactive online tutorial](https://learn.remult.dev/).**
|
|
45
|
+
|
|
44
46
|
Remult promotes a **consistent query syntax for both frontend and Backend code**:
|
|
45
47
|
|
|
46
48
|
```ts
|
package/package.json
CHANGED
package/src/remult3/remult3.d.ts
CHANGED
|
@@ -838,7 +838,7 @@ export interface Paginator<entityType> {
|
|
|
838
838
|
* @template matchIdEntity The type used for matching IDs in the relation.
|
|
839
839
|
* @template optionsType The type of find options to apply to the relation (default is FindOptionsBase<toEntity>).
|
|
840
840
|
*/
|
|
841
|
-
export
|
|
841
|
+
export interface RelationOptions<fromEntity, toEntity, matchIdEntity, optionsType extends FindOptionsBase<toEntity> = FindOptionsBase<toEntity>> extends Pick<FieldOptions, 'caption'> {
|
|
842
842
|
/**
|
|
843
843
|
* An object specifying custom field names for the relation.
|
|
844
844
|
* Each key represents a field in the related entity, and its value is the corresponding field in the source entity.
|
|
@@ -865,7 +865,7 @@ export type RelationOptions<fromEntity, toEntity, matchIdEntity, optionsType ext
|
|
|
865
865
|
* If false or not specified, related entities will need to be explicitly included using the `include` option.
|
|
866
866
|
*/
|
|
867
867
|
defaultIncluded?: boolean;
|
|
868
|
-
}
|
|
868
|
+
}
|
|
869
869
|
export type ObjectMembersOnly<T> = MembersOnly<{
|
|
870
870
|
[K in keyof Pick<T, {
|
|
871
871
|
[K in keyof T]: T[K] extends object | undefined | null ? T[K] extends Date | undefined | null ? never : K : never;
|