Skip to content

Commit 9c5956c

Browse files
authored
Merge pull request #43 from seamapi/type-only-imports
2 parents 49f8c5a + 846b557 commit 9c5956c

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { existsSync } from 'node:fs'
22
import { join, parse, resolve } from 'node:path'
33

4-
import { type StorybookConfig } from '@storybook/react-webpack5'
4+
import type { StorybookConfig } from '@storybook/react-webpack5'
55
import { NormalModuleReplacementPlugin } from 'webpack'
66
import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin'
77

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Preview } from '@storybook/react'
1+
import type { Preview } from '@storybook/react'
22

33
import { SeamProvider } from 'index.js'
44

examples/basic/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type ReactElement } from 'react'
1+
import type { ReactElement } from 'react'
22

33
import { DeviceManager, SeamProvider } from 'index.js'
44

src/lib/components/DeviceManager/DeviceManager.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Meta, type StoryObj } from '@storybook/react'
1+
import type { Meta, StoryObj } from '@storybook/react'
22

33
import { DeviceManager } from './DeviceManager.js'
44

src/lib/components/DeviceManager/DeviceManager.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { type ReactElement } from 'react'
2-
import { type CommonDeviceProperties, type Device } from 'seamapi'
1+
import type { ReactElement } from 'react'
2+
import type { CommonDeviceProperties, Device } from 'seamapi'
33

44
import { useDevices, type UseDevicesParams } from 'lib/hooks/use-devices.js'
55

src/lib/hooks/use-devices.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useQuery, type UseQueryResult } from '@tanstack/react-query'
2-
import {
3-
type DevicesListRequest,
4-
type DevicesListResponse,
5-
type SeamError,
2+
import type {
3+
DevicesListRequest,
4+
DevicesListResponse,
5+
SeamError,
66
} from 'seamapi'
77

88
import { useSeam } from './use-seam.js'

src/lib/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
22
import { createContext, type ReactElement, type ReactNode, useRef } from 'react'
3-
import { type Seam, type SeamClientOptions } from 'seamapi'
3+
import type { Seam, SeamClientOptions } from 'seamapi'
44

55
declare global {
66
// eslint-disable-next-line no-var

test/fixtures/react.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render } from '@testing-library/react'
2-
import { type ReactElement, type ReactNode } from 'react'
2+
import type { ReactElement, ReactNode } from 'react'
33

44
import { SeamProvider } from 'index.js'
55

0 commit comments

Comments
 (0)