Skip to content

Commit 4defbe9

Browse files
committed
chore: enforce import extensions
1 parent 65e1d29 commit 4defbe9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
},
5050
"correctness": {
5151
"noInvalidUseBeforeDeclaration": "error",
52-
"noVoidTypeReturn": "error"
52+
"noVoidTypeReturn": "error",
53+
"useImportExtensions": "error"
5354
},
5455
"complexity": {
5556
"useLiteralKeys": "error",

packages/types/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './generated/index.js'
1+
export * from './generated/index.ts'

packages/zod/test/type-equality-v3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { AssemblyStatus } from '@transloadit/types/assemblyStatus'
22
import type { AssemblyInstructions } from '@transloadit/types/template'
33
import type { z } from 'zod/v3'
4-
import type { assemblyStatusSchema } from '../src/v3/assemblyStatus.js'
5-
import type { assemblyInstructionsSchema } from '../src/v3/template.js'
4+
import type { assemblyStatusSchema } from '../src/v3/assemblyStatus.ts'
5+
import type { assemblyInstructionsSchema } from '../src/v3/template.ts'
66

77
type Equal<A, B> =
88
(<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2 ? true : false

packages/zod/test/type-equality-v4.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { AssemblyStatus } from '@transloadit/types/assemblyStatus'
22
import type { AssemblyInstructions } from '@transloadit/types/template'
33
import type { z } from 'zod/v4'
4-
import type { assemblyStatusSchema } from '../src/v4/assemblyStatus.js'
5-
import type { assemblyInstructionsSchema } from '../src/v4/template.js'
4+
import type { assemblyStatusSchema } from '../src/v4/assemblyStatus.ts'
5+
import type { assemblyInstructionsSchema } from '../src/v4/template.ts'
66

77
type Equal<A, B> = [A] extends [B] ? ([B] extends [A] ? true : false) : false
88

0 commit comments

Comments
 (0)