Skip to content

Commit 680aafd

Browse files
committed
clean up
1 parent 1545555 commit 680aafd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

web/common/src/components/CopyButton/CopyButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import React, { useState } from 'react'
22

33
import { Button, type ButtonProps } from '@/components/Button/Button'
44
import { cn } from '@/utils'
5-
import type { TimerID } from '@/types'
5+
6+
type TimerID = ReturnType<typeof setTimeout>
67

78
export interface CopyButtonProps extends Omit<ButtonProps, 'children'> {
89
text: string

web/common/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export { cn, truncate } from '@/utils'
2828

2929
// Types
3030
export type {
31-
TimerID,
3231
Brand,
3332
Branded,
3433
Size,

web/common/src/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ export declare const __brand: unique symbol
22

33
export type Brand<B> = { [__brand]: B }
44
export type Branded<T, B> = T & Brand<B>
5-
export type Nullable<T> = T | null
6-
export type TimerID = ReturnType<typeof setTimeout>
75

86
export type Size = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl'
97
export type HeadlineLevel = 1 | 2 | 3 | 4 | 5 | 6

0 commit comments

Comments
 (0)