Skip to content

Commit 811806c

Browse files
committed
test: Change to TypeScript
1 parent 0828458 commit 811806c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function loadLanguageAsync(lang: string): Promise<string | void> {
7070
/**
7171
* Get the translation for the given key.
7272
*/
73-
export function trans(key: string, replacements: ReplacementsInterface): string {
73+
export function trans(key: string, replacements?: ReplacementsInterface): string {
7474
if (!activeMessages[key]) {
7575
activeMessages[key] = key
7676
}
File renamed without changes.

0 commit comments

Comments
 (0)