- Preparing search index...
- The search index is not available
akaba-tool
Class EnvHelper<EnvId, AbilityId>
Type Parameters
-
EnvId extends string = string
-
AbilityId extends string = string
Constructors
constructor
- new EnvHelper<EnvId, AbilityId>(envConfig?: Record<EnvId, Partial<envHelper.EnvOneConfig<AbilityId>>> | Map<EnvId, Partial<envHelper.EnvOneConfig<AbilityId>>>, envId?: EnvId): envHelper.EnvHelper<EnvId, AbilityId>
-
Type Parameters
-
EnvId extends string = string
-
AbilityId extends string = string
Properties
Private currentEnvConfig
Private envConfigMap
Private envId
envId: string = ""
Methods
addAbilityOnEnv
- addAbilityOnEnv(envId: EnvId, abilityId: AbilityId): envHelper.EnvHelper<EnvId, AbilityId>
-
Parameters
-
envId: EnvId
-
abilityId: AbilityId
getConfigOnEnv
- getConfigOnEnv(envId: EnvId): undefined | envHelper.EnvOneConfig<AbilityId>
-
getCurrentIsAbleTo
- getCurrentIsAbleTo(abilityId: AbilityId): boolean
-
Returns boolean
getEnvId
- getEnvId(envId: string): boolean
-
Returns boolean
getEnvIsAbleTo
- getEnvIsAbleTo(envId: EnvId, abilityId: AbilityId): boolean
-
Parameters
-
envId: EnvId
-
abilityId: AbilityId
Returns boolean
updateEnvId
- updateEnvId(envId: EnvId): void
-
Returns void
Since
1.4.17