@sprucelabs/mercury-types 37.2.3 → 37.2.4
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.
|
@@ -21,7 +21,6 @@ export interface MercurySingleResponse<Payload> {
|
|
|
21
21
|
payload?: Payload;
|
|
22
22
|
}
|
|
23
23
|
export type KeyOf<O> = Extract<keyof O, string>;
|
|
24
|
-
export declare type EventNames<Contract extends EventContract> = KeyOf<Contract['eventSignatures']>;
|
|
25
24
|
export type EventContractEmitPayloads<Contract extends EventContract> = {
|
|
26
25
|
[N in EventNames<Contract>]: Contract['eventSignatures'][N]['emitPayloadSchema'] extends Schema ? SchemaValues<Contract['eventSignatures'][N]['emitPayloadSchema']> : never;
|
|
27
26
|
};
|
|
@@ -52,4 +51,5 @@ export type PermissionId<ContractId extends PermissionContractId> = PermissionCo
|
|
|
52
51
|
type RemoveStringKeys<T> = {
|
|
53
52
|
[K in keyof T as string extends K ? never : number extends K ? never : K]: T[K];
|
|
54
53
|
};
|
|
54
|
+
export type EventNames<Contract extends EventContract = SkillEventContract> = KeyOf<Contract['eventSignatures']>;
|
|
55
55
|
export {};
|
|
@@ -21,7 +21,6 @@ export interface MercurySingleResponse<Payload> {
|
|
|
21
21
|
payload?: Payload;
|
|
22
22
|
}
|
|
23
23
|
export type KeyOf<O> = Extract<keyof O, string>;
|
|
24
|
-
export declare type EventNames<Contract extends EventContract> = KeyOf<Contract['eventSignatures']>;
|
|
25
24
|
export type EventContractEmitPayloads<Contract extends EventContract> = {
|
|
26
25
|
[N in EventNames<Contract>]: Contract['eventSignatures'][N]['emitPayloadSchema'] extends Schema ? SchemaValues<Contract['eventSignatures'][N]['emitPayloadSchema']> : never;
|
|
27
26
|
};
|
|
@@ -52,4 +51,5 @@ export type PermissionId<ContractId extends PermissionContractId> = PermissionCo
|
|
|
52
51
|
type RemoveStringKeys<T> = {
|
|
53
52
|
[K in keyof T as string extends K ? never : number extends K ? never : K]: T[K];
|
|
54
53
|
};
|
|
54
|
+
export type EventNames<Contract extends EventContract = SkillEventContract> = KeyOf<Contract['eventSignatures']>;
|
|
55
55
|
export {};
|