-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linting issues in runtime/defineMessages.ts
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import type { MessageDescriptor } from "../types/index.js"; | ||
import type { MessageDescriptor } from '../types/index.js' | ||
|
||
export function defineMessage<const Descriptor extends MessageDescriptor>(descriptor: Descriptor) { | ||
export function defineMessage<const Descriptor extends MessageDescriptor>( | ||
descriptor: Descriptor, | ||
) { | ||
return descriptor | ||
} | ||
|
||
export function defineMessages<const Descriptors extends Record<string, MessageDescriptor>>(descriptors: Descriptors) { | ||
export function defineMessages< | ||
const Descriptors extends Record<string, MessageDescriptor>, | ||
>(descriptors: Descriptors) { | ||
return descriptors | ||
} |