Skip to content

Commit

Permalink
fix: Switch some imports to type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 12, 2024
1 parent afe8b49 commit 85ea465
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/files/deno.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { assert, assertEquals, assertRejects } from '@std/assert'
import { readAll, readerFromStreamReader } from '@std/io'
import { basename, dirname, fromFileUrl, join } from '@std/path'
import { EOL } from '@std/fs'
import { FileTree } from '../types/filetree.ts'
import type { FileTree } from '../types/filetree.ts'
import { BIDSFileDeno, readFileTree, UnicodeDecodeError } from './deno.ts'
import { requestReadPermission } from '../setup/requestPermissions.ts'
import { FileIgnoreRules } from './ignore.ts'
Expand Down
4 changes: 2 additions & 2 deletions src/files/filetree.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert, assertEquals } from '@std/assert'
import { FileIgnoreRules } from './ignore.ts'
import { FileTree } from '../types/filetree.ts'
import type { FileIgnoreRules } from './ignore.ts'
import type { FileTree } from '../types/filetree.ts'
import { filesToTree, pathsToTree } from './filetree.ts'

Deno.test('FileTree generation', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion src/files/filetree.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parse, SEPARATOR_PATTERN } from '@std/path'
import * as posix from '@std/path/posix'
import { BIDSFile, FileTree } from '../types/filetree.ts'
import type { BIDSFile, FileTree } from '../types/filetree.ts'

const nullFile = {
size: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/files/gzip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* GZIP
* Module for extracting gzip metadata from a file
*/
import { Gzip } from '@bids/schema/context'
import { BIDSFile } from '../types/filetree.ts'
import type { Gzip } from '@bids/schema/context'
import type { BIDSFile } from '../types/filetree.ts'

/**
* Parse a gzip header from a file
Expand Down
4 changes: 2 additions & 2 deletions src/files/tiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* TIFF
* Module for extracting Tiff metadata
*/
import { Ome, Tiff } from '@bids/schema/context'
import type { Ome, Tiff } from '@bids/schema/context'
import * as XML from '@libs/xml'
import { BIDSFile } from '../types/filetree.ts'
import type { BIDSFile } from '../types/filetree.ts'

function getImageDescription(
dataview: DataView,
Expand Down
2 changes: 1 addition & 1 deletion src/schema/fixtures.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BIDSFile, FileTree } from '../types/filetree.ts'
import type { BIDSFile, FileTree } from '../types/filetree.ts'
import { pathsToTree } from '../files/filetree.ts'
import { nullReadBytes } from '../tests/nullReadBytes.ts'

Expand Down
4 changes: 2 additions & 2 deletions src/schema/tables.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GenericRule, GenericSchema, SchemaType, SchemaTypeLike } from '../types/schema.ts'
import { BIDSContext } from './context.ts'
import type { GenericRule, GenericSchema, SchemaType, SchemaTypeLike } from '../types/schema.ts'
import type { BIDSContext } from './context.ts'

interface ColumnDefinition {
Levels?: Record<string, unknown>
Expand Down
2 changes: 1 addition & 1 deletion src/validators/citation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { pathsToTree } from '../files/filetree.ts'
import { BIDSFileDeno } from '../files/deno.ts'
import { citationValidate } from './citation.ts'
import { BIDSContextDataset } from '../schema/context.ts'
import { GenericSchema } from '../types/schema.ts'
import type { GenericSchema } from '../types/schema.ts'
import { loadSchema } from '../setup/loadSchema.ts'

Deno.test('citation validation', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion src/validators/filenameValidate.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FileTree } from '../types/filetree.ts'
import type { FileTree } from '../types/filetree.ts'
import type { GenericSchema } from '../types/schema.ts'
import { assertEquals } from '@std/assert'
import { BIDSContext } from '../schema/context.ts'
Expand Down

0 comments on commit 85ea465

Please sign in to comment.