RoleManager interface return type
See original GitHub issueI see that the return type of function signature in interface RoleManager
are not async value.
In fact, all functions related to IO operation in JavaScript should be async, for example:
getRoles(name: string, ...domain: string[]): string[];
Perhaps it will query database
So it should be
getRoles(name: string, ...domain: string[]): Promise<string[]>
for compatibility, maybe it can be
getRoles(name: string, ...domain: string[]): Promise<string[]> | string[]
thoughts?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:20 (12 by maintainers)
Top Results From Across the Web
oracle.iam.rm.inherent.role Interface RoleManager
Returns a String that is the SOC hierarchy type associated with the role, or null if the role does not have an SOC...
Read more >RoleManager<TRole> Class (Microsoft.AspNetCore.Identity)
Gets a flag indicating whether the underlying persistence store supports returning an IQueryable collection of roles. SupportsRoleClaims. Gets a flag indicating ...
Read more >Interface Implementation with generic type - Stack Overflow
IRepository<T> , T in RoleManager only one type,. first way, change IRoleRepository public interface IRoleRepository<TResult, TUser, ...
Read more >casbin/role_manager.go at master - GitHub
return names. } // RoleManagerImpl provides a default implementation for the RoleManager interface. type RoleManagerImpl struct {. allRoles *sync.Map.
Read more >ProjectRoleManager (Atlassian JIRA 7.0.3 API)
Modifier and Type, Interface and Description. static class, ProjectRoleManager. ... This method will return the default role actors for a ProjectRole.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sbutler @dreamdevil00 Hi, we has been publish a beta version to npm, call
yarn add casbin@beta
install it.@sbutler plan added, next major version.