@sprucelabs/mercury-types 37.2.0 → 37.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,6 +47,6 @@ interface PCM {
|
|
|
47
47
|
}
|
|
48
48
|
export interface PermissionContractMap extends PCM {
|
|
49
49
|
}
|
|
50
|
-
export type PermissionContractId = keyof PermissionContractMap
|
|
51
|
-
export type PermissionId<ContractId extends PermissionContractId> = PermissionContractMap[ContractId];
|
|
50
|
+
export type PermissionContractId = Extract<keyof PermissionContractMap, string>;
|
|
51
|
+
export type PermissionId<ContractId extends PermissionContractId> = PermissionContractMap[ContractId][number];
|
|
52
52
|
export {};
|
|
@@ -47,6 +47,6 @@ interface PCM {
|
|
|
47
47
|
}
|
|
48
48
|
export interface PermissionContractMap extends PCM {
|
|
49
49
|
}
|
|
50
|
-
export type PermissionContractId = keyof PermissionContractMap
|
|
51
|
-
export type PermissionId<ContractId extends PermissionContractId> = PermissionContractMap[ContractId];
|
|
50
|
+
export type PermissionContractId = Extract<keyof PermissionContractMap, string>;
|
|
51
|
+
export type PermissionId<ContractId extends PermissionContractId> = PermissionContractMap[ContractId][number];
|
|
52
52
|
export {};
|