File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/components/authorization/policy/executor Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
EnhancedResource ,
6
6
type ResourceShape ,
7
7
type SecuredPropsPlusExtraKey ,
8
+ type Session ,
8
9
} from '~/common' ;
9
10
import { SessionHost } from '../../../authentication/session.host' ;
10
11
import type { Power } from '../../dto' ;
@@ -82,13 +83,13 @@ export class Privileges {
82
83
*/
83
84
for < TResourceStatic extends ResourceShape < any > > (
84
85
resource : TResourceStatic | EnhancedResource < TResourceStatic > ,
85
- object ?: ResourceObjectContext < TResourceStatic > ,
86
+ object ?: NoInfer < ResourceObjectContext < TResourceStatic > > ,
86
87
) : ResourcePrivileges < TResourceStatic > ;
87
88
/** @deprecated */
88
89
for < TResourceStatic extends ResourceShape < any > > (
89
- _session : unknown ,
90
+ _ : Session ,
90
91
resource : TResourceStatic | EnhancedResource < TResourceStatic > ,
91
- object ?: ResourceObjectContext < TResourceStatic > ,
92
+ object ?: NoInfer < ResourceObjectContext < TResourceStatic > > ,
92
93
) : ResourcePrivileges < TResourceStatic > ;
93
94
for < TResourceStatic extends ResourceShape < any > > (
94
95
sessionOrRes : any ,
You can’t perform that action at this time.
0 commit comments