events-node: restore EventParams type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-05-25 15:41:38 +02:00
parent 2e2fc18dcc
commit 88a1be5ec0
+2 -4
View File
@@ -14,12 +14,10 @@
* limitations under the License.
*/
import { JsonValue } from '@backstage/types';
/**
* @public
*/
export interface EventParams<TPayload extends JsonValue = JsonValue> {
export interface EventParams<TPayload = unknown> {
/**
* Topic for which this event should be published.
*/
@@ -31,5 +29,5 @@ export interface EventParams<TPayload extends JsonValue = JsonValue> {
/**
* Metadata (e.g., HTTP headers and similar for events received from external).
*/
metadata?: { [name in string]?: string | string[] };
metadata?: Record<string, string | string[] | undefined>;
}