File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
configs/eslint-config-compass
packages/compass-crud/src Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ const extraTsRules = {
36
36
'@typescript-eslint/no-duplicate-type-constituents' : 'warn' ,
37
37
'@typescript-eslint/no-unsafe-declaration-merging' : 'warn' ,
38
38
'@typescript-eslint/no-unsafe-enum-comparison' : 'warn' ,
39
- '@typescript-eslint/no-misused-promises' : 'warn' ,
40
39
} ;
41
40
42
41
const tsRules = {
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ const Document = (props: DocumentProps) => {
37
37
< ReadonlyDocument
38
38
doc = { doc }
39
39
copyToClipboard = { copyToClipboard }
40
- openInsertDocumentDialog = { openInsertDocumentDialog }
40
+ openInsertDocumentDialog = { ( doc , cloned ) => {
41
+ void openInsertDocumentDialog ?.( doc , cloned ) ;
42
+ } }
41
43
/>
42
44
) ;
43
45
}
Original file line number Diff line number Diff line change @@ -89,15 +89,15 @@ export type CrudActions = {
89
89
rowIndex : number ;
90
90
}
91
91
) : void ;
92
- updateDocument ( doc : Document ) : void ;
93
- removeDocument ( doc : Document ) : void ;
94
- replaceDocument ( doc : Document ) : void ;
95
- openInsertDocumentDialog ( doc : BSONObject , cloned : boolean ) : void ;
92
+ updateDocument ( doc : Document ) : Promise < void > ;
93
+ removeDocument ( doc : Document ) : Promise < void > ;
94
+ replaceDocument ( doc : Document ) : Promise < void > ;
95
+ openInsertDocumentDialog ( doc : BSONObject , cloned : boolean ) : Promise < void > ;
96
96
copyToClipboard ( doc : Document ) : void ; //XXX
97
97
openBulkDeleteDialog ( ) : void ;
98
- runBulkUpdate ( ) : void ;
98
+ runBulkUpdate ( ) : Promise < void > ;
99
99
closeBulkDeleteDialog ( ) : void ;
100
- runBulkDelete ( ) : void ;
100
+ runBulkDelete ( ) : Promise < void > ;
101
101
openDeleteQueryExportToLanguageDialog ( ) : void ;
102
102
saveUpdateQuery ( name : string ) : Promise < void > ;
103
103
} ;
You can’t perform that action at this time.
0 commit comments