Skip to content

Commit c1aa269

Browse files
chore: module-scoped type definitions, see: microsoft/TypeScript#52593 (comment)
1 parent 76dcbee commit c1aa269

File tree

10 files changed

+6
-6
lines changed

10 files changed

+6
-6
lines changed
File renamed without changes.

Diff for: src/components/intialisation/types.d.ts renamed to src/components/intialisation/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ConfigProps, HandleChange, HandleClick } from '@/pages/types'
2-
import type { Dispatch } from 'react'
1+
import type { ConfigProps, HandleChange, HandleClick } from '@/util/types'
2+
import type { Dispatch, SetStateAction } from 'react'
33

44
export interface InitialisationProps {
55
readonly opened: boolean;

Diff for: src/components/settings/types.d.ts renamed to src/components/settings/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ConfigProps, HandleChange, HandleClick } from '@/pages/types'
1+
import type { ConfigProps, HandleChange, HandleClick } from '@/util/types'
22

33
export interface Location {
44
suburb?: string;
File renamed without changes.
File renamed without changes.

Diff for: src/pages/_app.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Notifications } from '@mantine/notifications'
33
import type { AppProps } from 'next/app'
44
import Head from 'next/head'
55
import type { FC } from 'react'
6-
import './styles.css'
6+
import '@/styles/styles.css'
77

88
const cache = createEmotionCache({ key: 'weather-please' })
99

Diff for: src/pages/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import * as Sentry from '@sentry/nextjs'
1212
import { AnimatePresence, motion } from 'framer-motion'
1313
import type { FC } from 'react'
1414
import { useEffect, useState } from 'react'
15-
import styles from './styles.module.css'
16-
import type { CompareObjects, ConfigProps, HandleChange, HandleClick, MergeObjects } from './types'
15+
import styles from '@/styles/styles.module.css'
16+
import type { CompareObjects, ConfigProps, HandleChange, HandleClick, MergeObjects } from '@/util/types'
1717

1818
const WeatherPlease: FC = () => {
1919
const [currentWeatherData, setCurrentWeatherData] = useState<CurrentWeatherProps>({
File renamed without changes.
File renamed without changes.

Diff for: src/pages/types.d.ts renamed to src/util/types.ts

File renamed without changes.

0 commit comments

Comments
 (0)