Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
fix: type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kloubert committed Feb 21, 2024
1 parent 5d492cf commit cff3140
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log (@egomobile/orm)

## 0.15.3
## 0.15.4

- add `verifyEntityConfigurations()` and `verifyForStrictEntityDocumentation()` functions
- add `comment` props to [IEntityConfig](https://egomobile.github.io/node-orm/interfaces/IEntityConfig.html) and [IEntityFieldConfig](https://egomobile.github.io/node-orm/interfaces/IEntityFieldConfig.html) types
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egomobile/orm",
"version": "0.15.3",
"version": "0.15.4",
"description": "A simple and generic ORM mapper.",
"main": "lib/index.js",
"engines": {
Expand Down
8 changes: 2 additions & 6 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ export type EntityConfigurations = {
/**
* Object with entity configurations.
*/
export type EntityFieldConfigurations = {
/**
* List of `IEntityFieldConfig`s grouped by their attribute / column names.
*/
[fieldName: string]: IEntityFieldConfig;
};
export type EntityFieldConfigurations<TEntity extends unknown = any> =
Record<keyof TEntity, IEntityFieldConfig>;

/**
* A data context.
Expand Down

0 comments on commit cff3140

Please sign in to comment.