[improvement] mixins typescript (#3690)

This commit is contained in:
neverland
2019-06-29 11:31:53 +08:00
committed by GitHub
parent 0a79536a05
commit abe3e59bed
17 changed files with 135 additions and 82 deletions
+2
View File
@@ -10,3 +10,5 @@ export function createI18N(name: string) {
return typeof message === 'function' ? message(...args) : message;
};
}
export type Translate = ReturnType<typeof createI18N>;