Skip to content

Commit

Permalink
review-fix:convertHyphenatedZipCodeの型を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
marumoto-goq committed May 2, 2024
1 parent 9f2b016 commit d1c69f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/utils/convertHyphenatedZipCode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { HyphenatedZipCode } from '../type/type';

export const convertHyphenatedZipCode = (
zipCode: string | HyphenatedZipCode
): HyphenatedZipCode | string => {
zipCode: string
): HyphenatedZipCode => {
return `${zipCode.slice(0, 3)}-${zipCode.slice(3)}`;
};

0 comments on commit d1c69f6

Please sign in to comment.