From 21945e4dada0b6bbcfb8883f5592d250f66ece29 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin <10401817+brawaru@users.noreply.github.com> Date: Mon, 30 Oct 2023 04:11:40 +0100 Subject: [PATCH] Fix linting issues in runtime/defineMessages.ts --- src/runtime/defineMessages.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/runtime/defineMessages.ts b/src/runtime/defineMessages.ts index 62ea7b2..f2ef78b 100644 --- a/src/runtime/defineMessages.ts +++ b/src/runtime/defineMessages.ts @@ -1,9 +1,13 @@ -import type { MessageDescriptor } from "../types/index.js"; +import type { MessageDescriptor } from '../types/index.js' -export function defineMessage(descriptor: Descriptor) { +export function defineMessage( + descriptor: Descriptor, +) { return descriptor } -export function defineMessages>(descriptors: Descriptors) { +export function defineMessages< + const Descriptors extends Record, +>(descriptors: Descriptors) { return descriptors }