Skip to content

Commit

Permalink
types: remove const from ParseKeys Context type parameter and dis…
Browse files Browse the repository at this point in the history
…able `skipLibCheck`
  • Loading branch information
marcalexiei committed Apr 9, 2024
1 parent f96f653 commit 6a3f843
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions tsconfig.json
@@ -1,17 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": ["es6", "dom"],
"module": "ES6",
"target": "ES5",
"lib": ["ES6", "DOM"],
"jsx": "react",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noEmit": true,
"baseUrl": ".",
"paths": { "i18next": ["./index.d.mts"] },
"paths": {
"i18next": ["./index.d.mts"]
},
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true

/**
* setting this to `false` to throw an error when d.ts file trow an error
* @see https://github.com/i18next/i18next/issues/2168
*/
"skipLibCheck": false
}
}
2 changes: 1 addition & 1 deletion typescript/t.d.ts
Expand Up @@ -128,7 +128,7 @@ export type ParseKeys<
KPrefix = undefined,
Keys extends $Dictionary = KeysByTOptions<TOpt>,
ActualNS extends Namespace = NsByTOptions<Ns, TOpt>,
const Context extends TOpt['context'] = TOpt['context'],
Context extends TOpt['context'] = TOpt['context'],
> = $IsResourcesDefined extends true
? FilterKeysByContext<
| ParseKeysByKeyPrefix<Keys[$FirstNamespace<ActualNS>], KPrefix>
Expand Down

0 comments on commit 6a3f843

Please sign in to comment.