Skip to content

Commit 51ea29e

Browse files
committed
update
1 parent 227ecb2 commit 51ea29e

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

client/eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { config, configs as tsConfigs, parser as tsParser } from 'typescript-esl
1010
import type { FixupConfigArray } from '@eslint/compat';
1111

1212
export default config(
13+
{ ignores: ['packages/i18n/index.d.ts', 'packages/i18n/lib/i18n.d.ts'] },
1314
// Shared configs
1415
js.configs.recommended,
1516
...tsConfigs.recommended,

client/packages/i18n/lib/i18n.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { MessageKeyType } from './types.js';
2+
3+
/**
4+
* Type-only declaration for the runtime-generated module `./i18n.js`.
5+
*
6+
* In production builds, `dist/lib/i18n.js` is generated.
7+
* During `tsc --noEmit`, this shim lets TypeScript resolve the specifier.
8+
*/
9+
export declare const t: (key: MessageKeyType, substitutions?: string | string[]) => string;
10+

0 commit comments

Comments
 (0)