From bee3bcdf6fec03021407d7436bc98add474998d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EC=8A=B9=ED=99=98?= Date: Mon, 22 Jul 2024 01:39:04 +0900 Subject: [PATCH 1/3] Updated README.md. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 47f9c9a..1db9e5a 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,17 @@ $ npm i -D @oshx/type-helper Please add below in `tsconfig.json` file. ```json +{ + "compilerOptions": { + "typeRoots": [ + "node_modules/@oshx" + ] + } +} +``` + +If your TypeScript doesn't accept that type, then add below. +```json { "compilerOptions": { "typeRoots": [ From b2dc6e22a2562b06c7234a624852004c3f41a613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EC=8A=B9=ED=99=98?= Date: Mon, 22 Jul 2024 01:39:51 +0900 Subject: [PATCH 2/3] Updated 'PropsWithClassName' type as an optional value. --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 0a51dcc..7f31b60 100644 --- a/index.d.ts +++ b/index.d.ts @@ -32,9 +32,9 @@ declare type ObjectValue = T[ObjectKey] */ declare type PropsWithClassName< T extends object = object, - ClassNameType = string | undefined + ClassNameType = string > = { - className: ClassNameType + className?: ClassNameType } & T /** The simple `Any function` declaration. From 42e96ad8ea265ff96c34f0561170bdc15c21dea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EC=8A=B9=ED=99=98?= Date: Mon, 22 Jul 2024 01:40:03 +0900 Subject: [PATCH 3/3] Updated versions. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f5156e..20c1455 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oshx/type-helper", - "version": "1.0.5", + "version": "1.0.6", "description": "Types help TypeScript types.", "repository": { "type": "git",