Skip to content

homework-2 Домашнее задание по уроку Typescript (1)#45

Open
kooooos681 wants to merge 1 commit into
React-js-OTUS:mainfrom
kooooos681:feature/hw-2-typescript-1
Open

homework-2 Домашнее задание по уроку Typescript (1)#45
kooooos681 wants to merge 1 commit into
React-js-OTUS:mainfrom
kooooos681:feature/hw-2-typescript-1

Conversation

@kooooos681
Copy link
Copy Markdown

No description provided.

if (!longColorRegExp.test(color) && !shortColorRegExp.test(color)) throw new Error(`invalid hex color: ${color}`);
};

export const hex2rgb = (color: string) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тип возвращаемого значения

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants