Skip to content

Commit 85ea465

Browse files
committed
fix: Switch some imports to type imports
1 parent afe8b49 commit 85ea465

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

src/files/deno.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert, assertEquals, assertRejects } from '@std/assert'
22
import { readAll, readerFromStreamReader } from '@std/io'
33
import { basename, dirname, fromFileUrl, join } from '@std/path'
44
import { EOL } from '@std/fs'
5-
import { FileTree } from '../types/filetree.ts'
5+
import type { FileTree } from '../types/filetree.ts'
66
import { BIDSFileDeno, readFileTree, UnicodeDecodeError } from './deno.ts'
77
import { requestReadPermission } from '../setup/requestPermissions.ts'
88
import { FileIgnoreRules } from './ignore.ts'

src/files/filetree.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { assert, assertEquals } from '@std/assert'
2-
import { FileIgnoreRules } from './ignore.ts'
3-
import { FileTree } from '../types/filetree.ts'
2+
import type { FileIgnoreRules } from './ignore.ts'
3+
import type { FileTree } from '../types/filetree.ts'
44
import { filesToTree, pathsToTree } from './filetree.ts'
55

66
Deno.test('FileTree generation', async (t) => {

src/files/filetree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { parse, SEPARATOR_PATTERN } from '@std/path'
22
import * as posix from '@std/path/posix'
3-
import { BIDSFile, FileTree } from '../types/filetree.ts'
3+
import type { BIDSFile, FileTree } from '../types/filetree.ts'
44

55
const nullFile = {
66
size: 0,

src/files/gzip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* GZIP
33
* Module for extracting gzip metadata from a file
44
*/
5-
import { Gzip } from '@bids/schema/context'
6-
import { BIDSFile } from '../types/filetree.ts'
5+
import type { Gzip } from '@bids/schema/context'
6+
import type { BIDSFile } from '../types/filetree.ts'
77

88
/**
99
* Parse a gzip header from a file

src/files/tiff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* TIFF
33
* Module for extracting Tiff metadata
44
*/
5-
import { Ome, Tiff } from '@bids/schema/context'
5+
import type { Ome, Tiff } from '@bids/schema/context'
66
import * as XML from '@libs/xml'
7-
import { BIDSFile } from '../types/filetree.ts'
7+
import type { BIDSFile } from '../types/filetree.ts'
88

99
function getImageDescription(
1010
dataview: DataView,

src/schema/fixtures.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BIDSFile, FileTree } from '../types/filetree.ts'
1+
import type { BIDSFile, FileTree } from '../types/filetree.ts'
22
import { pathsToTree } from '../files/filetree.ts'
33
import { nullReadBytes } from '../tests/nullReadBytes.ts'
44

src/schema/tables.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { GenericRule, GenericSchema, SchemaType, SchemaTypeLike } from '../types/schema.ts'
2-
import { BIDSContext } from './context.ts'
1+
import type { GenericRule, GenericSchema, SchemaType, SchemaTypeLike } from '../types/schema.ts'
2+
import type { BIDSContext } from './context.ts'
33

44
interface ColumnDefinition {
55
Levels?: Record<string, unknown>

src/validators/citation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { pathsToTree } from '../files/filetree.ts'
33
import { BIDSFileDeno } from '../files/deno.ts'
44
import { citationValidate } from './citation.ts'
55
import { BIDSContextDataset } from '../schema/context.ts'
6-
import { GenericSchema } from '../types/schema.ts'
6+
import type { GenericSchema } from '../types/schema.ts'
77
import { loadSchema } from '../setup/loadSchema.ts'
88

99
Deno.test('citation validation', async (t) => {

src/validators/filenameValidate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FileTree } from '../types/filetree.ts'
1+
import type { FileTree } from '../types/filetree.ts'
22
import type { GenericSchema } from '../types/schema.ts'
33
import { assertEquals } from '@std/assert'
44
import { BIDSContext } from '../schema/context.ts'

0 commit comments

Comments
 (0)