Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
fix: type imports with wrong capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
junhoyeo committed Jul 4, 2021
1 parent f5a5534 commit bd8e9ca
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Color.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Config } from './Config';
import { RgbaObject, RgbaString, RgbObject, RgbString } from './types/rgb';
import { RgbaObject, RgbaString, RgbObject, RgbString } from './types/Rgb';
import { rgbaToHex } from './utils/rgbaToHex';

type Strings = {
Expand Down
2 changes: 1 addition & 1 deletion src/parser/Rgb.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Color } from '../Color';
import { Config } from '../Config';
import { RgbString } from '../types/rgb';
import { RgbString } from '../types/Rgb';
import { toRgbRange } from '../utils/filters';

export const parseColorFromRgbString = (
Expand Down
2 changes: 1 addition & 1 deletion src/parser/Rgba.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Color } from '../Color';
import { Config } from '../Config';
import { RgbaString } from '../types/rgb';
import { RgbaString } from '../types/Rgb';
import { toAlphaRange, toRgbRange } from '../utils/filters';

export const parseColorFromRgbaString = (
Expand Down
2 changes: 1 addition & 1 deletion src/parser/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Color } from '../Color';
import { Config } from '../Config';
import { ColorInput } from '../types/ColorInput';
import { RgbaString, RgbString } from '../types/rgb';
import { RgbaString, RgbString } from '../types/Rgb';
import { parseColorFromHexString } from './Hex';
import { parseColorFromRgbString } from './Rgb';
import { parseColorFromRgbaString } from './Rgba';
Expand Down
4 changes: 2 additions & 2 deletions src/types/ColorInput.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HexString, HexStringWithOpacity } from './hex';
import { RgbColorInput } from './rgb';
import { HexString, HexStringWithOpacity } from './Hex';
import { RgbColorInput } from './Rgb';

export type ColorInput<Str extends string> =
| RgbColorInput
Expand Down
2 changes: 1 addition & 1 deletion src/useColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Color } from './Color';
import { Config, defaultConfig } from './Config';
import { parseColor } from './parser';
import { ColorInput } from './types/ColorInput';
import { RgbaObject } from './types/rgb';
import { RgbaObject } from './types/Rgb';

export type SetColor = <NewString extends string>(
nextColor:
Expand Down
2 changes: 1 addition & 1 deletion src/utils/rgbaToHex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RgbaObject } from '../types/rgb';
import { RgbaObject } from '../types/Rgb';

export const numberToHex = (value: number) =>
(value | (1 << 8)).toString(16).slice(1)
Expand Down

0 comments on commit bd8e9ca

Please sign in to comment.