Skip to content

Commit

Permalink
fix: expose enhanced dts
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Mar 22, 2023
1 parent a7e38ce commit 24331ee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"i18n-ally.localesPaths": ["src/locale"],
"i18n-ally.keystyle": "flat",
"i18n-ally.enabledParsers": ["json"],
"i18n-ally.enabledFrameworks": ["react", "i18next"],
"i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
"i18n-ally.sourceLanguage": "en"
}
7 changes: 7 additions & 0 deletions i18n.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import 'i18next'

declare module 'i18next' {
interface CustomTypeOptions {
returnNull: false
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
"files": [
"dist",
"CHANGELOG.md",
"README.md"
"README.md",
"virtual.d.ts",
"i18n.d.ts"
],
"scripts": {
"dev": "tsup --watch",
Expand Down

0 comments on commit 24331ee

Please sign in to comment.