Commit 95a8e22
authored
Bugfix for TS definition
Error:
```node_modules/ravendb/dist/Types/index.d.ts:2:18 - error TS2430: Interface 'EntitiesCollectionObject<TEntity>' incorrectly extends interface 'IRavenObject<TEntity>'.
'string' index signatures are incompatible.
Type 'TEntity | null' is not assignable to type 'TEntity'.
'TEntity' could be instantiated with an arbitrary type which could be unrelated to 'TEntity | null'.
2 export interface EntitiesCollectionObject<TEntity> extends IRavenObject<TEntity> {
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ravendb/dist/Types/index.d.ts:5:18 - error TS2430: Interface 'RevisionsCollectionObject<TEntity>' incorrectly extends interface 'IRavenObject<TEntity>'.
'string' index signatures are incompatible.
Type 'TEntity | null' is not assignable to type 'TEntity'.
'TEntity' could be instantiated with an arbitrary type which could be unrelated to 'TEntity | null'.
5 export interface RevisionsCollectionObject<TEntity> extends IRavenObject<TEntity> {
~~~~~~~~~~~~~~~~~~~~~~~~~```1 parent e7d6e6e commit 95a8e22
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments