diff --git a/package.json b/package.json
index 5988a9dc8..df2048b50 100644
--- a/package.json
+++ b/package.json
@@ -43,7 +43,7 @@
"mockdate": "3.0.5",
"read-pkg": "9.0.1",
"shx": "0.3.4",
- "tstyche": "2.1.1",
+ "tstyche": "3.0.0",
"typescript": "5.6.3",
"vite": "5.4.10",
"vitest": "2.1.4",
diff --git a/packages/use-i18n/src/__typetests__/namespaceTranslation.test.ts b/packages/use-i18n/src/__typetests__/namespaceTranslation.test.ts
index 752c7a190..e365fedea 100644
--- a/packages/use-i18n/src/__typetests__/namespaceTranslation.test.ts
+++ b/packages/use-i18n/src/__typetests__/namespaceTranslation.test.ts
@@ -25,7 +25,7 @@ test('i18n - namespaceTranslation', () => {
`Argument of type '"doe.john"' is not assignable to parameter of type '"doe" | "describe"'`,
)
- expect(namespaceTranslation('doe')('john')).type.toEqual()
+ expect(namespaceTranslation('doe')('john')).type.toBe()
expect(namespaceTranslation('doe')('doesnotexists')).type.toRaiseError(
`Expected 2 arguments, but got 1.`,
@@ -39,7 +39,7 @@ test('i18n - namespaceTranslation', () => {
namespaceTranslation('doe')('child', {
name: 'Name',
}),
- ).type.toEqual()
+ ).type.toBe()
expect(
namespaceTranslation('doe')('doesnotexists', {
name: 'Name',
@@ -60,7 +60,7 @@ test('i18n - namespaceTranslation', () => {
age: '30',
name: 'John',
}),
- ).type.toEqual()
+ ).type.toBe()
expect(namespaceTranslation('describe')('john', {})).type.toRaiseError()
expect(namespaceTranslation('describe')('john')).type.toRaiseError()
diff --git a/packages/use-i18n/src/__typetests__/t.test.tsx b/packages/use-i18n/src/__typetests__/t.test.tsx
index e67f0d95f..313ab59c8 100644
--- a/packages/use-i18n/src/__typetests__/t.test.tsx
+++ b/packages/use-i18n/src/__typetests__/t.test.tsx
@@ -10,12 +10,12 @@ const { t } = useI18n<{
}>()
test('i18n - t', () => {
- expect(t('hello')).type.toEqual()
+ expect(t('hello')).type.toBe()
// Single key
expect(t('keydoesnotexists')).type.toRaiseError()
// Multiple keys
- expect(t('doe.john')).type.toEqual()
+ expect(t('doe.john')).type.toBe()
expect(t('doe.doesnotexists')).type.toRaiseError()
// With a param
@@ -23,7 +23,7 @@ test('i18n - t', () => {
t('doe.child', {
name: 'Name',
}),
- ).type.toEqual()
+ ).type.toBe()
expect(
t('doe.doesnotexists', {
name: 'Name',
@@ -42,7 +42,7 @@ test('i18n - t', () => {
age: '30',
name: 'John',
}),
- ).type.toEqual()
+ ).type.toBe()
expect(t('describe.john', {})).type.toRaiseError()
expect(t('describe.john')).type.toRaiseError()
@@ -56,7 +56,7 @@ test('i18n - t', () => {
),
}),
- ).type.toEqual()
+ ).type.toBe()
// Required generic
const { t: t2 } = useI18n()
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5d0ff6fb6..68c9db5db 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -111,8 +111,8 @@ importers:
specifier: 0.3.4
version: 0.3.4
tstyche:
- specifier: 2.1.1
- version: 2.1.1(typescript@5.6.3)
+ specifier: 3.0.0
+ version: 3.0.0(typescript@5.6.3)
typescript:
specifier: 5.6.3
version: 5.6.3
@@ -4069,9 +4069,9 @@ packages:
tslib@2.7.0:
resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==}
- tstyche@2.1.1:
- resolution: {integrity: sha512-SvAukLfHk894rbBJEu6+7S9ZggN89FDe4VA0xT/mldW7gmqcpmNV7+OghlR2IZyUbkas4mjrjOKxSWZ3IQzV+w==}
- engines: {node: '>=16.14'}
+ tstyche@3.0.0:
+ resolution: {integrity: sha512-WbtmMEDi7rYkEl380wi46eoFKtRQaK92s79o5F6Mwwjp22Oo4i8/91AVpsNwJ6szaoEn/4bNzUUHbt0JMC/fKQ==}
+ engines: {node: '>=18.19'}
hasBin: true
peerDependencies:
typescript: 4.x || 5.x
@@ -8606,7 +8606,7 @@ snapshots:
tslib@2.7.0: {}
- tstyche@2.1.1(typescript@5.6.3):
+ tstyche@3.0.0(typescript@5.6.3):
optionalDependencies:
typescript: 5.6.3