Proper fix on locale message type (#1894)

This commit is contained in:
Chenlei Hu
2024-12-12 14:26:43 -08:00
committed by GitHub
parent a2549f23c7
commit efb6f8afe3

View File

@@ -15,11 +15,7 @@ import ruCommands from './locales/ru/commands.json'
import jaCommands from './locales/ja/commands.json'
import koCommands from './locales/ko/commands.json'
function buildLocale(
main: typeof en,
nodes: typeof enNodes,
commands: typeof enCommands
) {
function buildLocale<M, N, C>(main: M, nodes: N, commands: C) {
return {
...main,
nodeDefs: nodes,