Skip to content

Commit

Permalink
feat: getRandomNickname 모듈 타입 declaration 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
toothlessdev committed May 18, 2024
1 parent cec67f6 commit d48e35b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ export const useVisitor = () => {
});
}, []);

console.log(visitorId);
return { visitorId };
};
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "@woowa-babble/random-nickname" {
export function getRandomNickname(type: string): string;
}

0 comments on commit d48e35b

Please sign in to comment.