Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed May 2, 2024
1 parent 7836a83 commit b04194c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/(app)/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use client'

import { useQuery, useQueryClient } from '@tanstack/react-query'
import React, { createElement } from 'react'
import { createElement } from 'react'
import clsx from 'clsx'
import { m } from 'framer-motion'
import Image from 'next/image'
import type React from 'react'

import { ErrorBoundary } from '~/components/common/ErrorBoundary'
import {
Expand Down
7 changes: 7 additions & 0 deletions src/lib/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ interface CustomToastOptions {
onClick?: () => void
}
interface ToastCustom {
(
message: string,
type?: TypeOptions,
options?: ToastOptions & {
iconElement?: JSX.Element
},
): Id
success(message: string, options?: ToastOptions & CustomToastOptions): Id
info(message: string, options?: ToastOptions & CustomToastOptions): Id
warn(message: string, options?: ToastOptions & CustomToastOptions): Id
Expand Down

0 comments on commit b04194c

Please sign in to comment.