From d48e35bff502001860d18c154b8899e5ec026f2b Mon Sep 17 00:00:00 2001 From: toothlessdev Date: Sun, 19 May 2024 03:44:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20getRandomNickname=20=EB=AA=A8=EB=93=88?= =?UTF-8?q?=20=ED=83=80=EC=9E=85=20declaration=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 6 ++++++ package.json | 1 + src/hooks/useVisitor.ts | 1 - src/index.d.ts | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/index.d.ts diff --git a/package-lock.json b/package-lock.json index a820612..e1c5b6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@fingerprintjs/fingerprintjs": "^4.3.0", "@reduxjs/toolkit": "^2.2.4", "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@woowa-babble/random-nickname": "^1.0.2", "axios": "^1.6.8", "babel-plugin-styled-components": "^2.1.4", "eslint-config-prettier": "^9.1.0", @@ -2014,6 +2015,11 @@ "vite": "^4 || ^5" } }, + "node_modules/@woowa-babble/random-nickname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@woowa-babble/random-nickname/-/random-nickname-1.0.2.tgz", + "integrity": "sha512-7wdR7s0T6D3aDZROTgaFvA9aP8h9L2OtKHUPselBa3goBe8mweJD7oBub2urs/lJjy/4djqYdkJBEf3lETuG1Q==" + }, "node_modules/acorn": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", diff --git a/package.json b/package.json index 50c98ef..531108d 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@fingerprintjs/fingerprintjs": "^4.3.0", "@reduxjs/toolkit": "^2.2.4", "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@woowa-babble/random-nickname": "^1.0.2", "axios": "^1.6.8", "babel-plugin-styled-components": "^2.1.4", "eslint-config-prettier": "^9.1.0", diff --git a/src/hooks/useVisitor.ts b/src/hooks/useVisitor.ts index bf7ded3..bcb6471 100644 --- a/src/hooks/useVisitor.ts +++ b/src/hooks/useVisitor.ts @@ -15,6 +15,5 @@ export const useVisitor = () => { }); }, []); - console.log(visitorId); return { visitorId }; }; diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..264ac5e --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,3 @@ +declare module "@woowa-babble/random-nickname" { + export function getRandomNickname(type: string): string; +}