æ¦è¦ TypeScript ã§ç¨ãããããã¨ã®ãã Type branding ã¨ããããã¯ã¨æ¢åã®ããã¤ãã®ã©ã¤ãã©ãªã§ã®ãã®å®è£ ä¾ã説æãã次ã«ãããå®å ¨ãã¤ä¾¿å©ã« Type branding ã使ãããã®ã¦ã¼ãã£ãªãã£ã®å®è£ ã ESLint è¨å®ãç´¹ä»ãã¾ãã æå¾ã« Type branding ã®æ´»ç¨ä¾ã¨ãã¦ãæ°å¤åã number ããç´°ãã使ãåããããããã« Branded Type ãå®ç¾©ããå®è£ ä¾ãè¼ãã¦ãã¾ãã Branded Type ã®ããããå®è£ ã«ãçè ãæè¿æãã¤ããã¡ãã£ã¨ãã工夫ãå ¥ãããã¨ã§æ°å¤åã® Branded Type ãä¸æãå®è£ ã§ããã®ã§ç´¹ä»ãã¦ã¿ã¾ããã Type branding ã¨ã¯ Structural Typing ãæ¡ç¨ãã¦ãã TypeScript ã§ã¯ãä¾ãã°è¤æ°ã®ç°ãªã ID æååã®å ï¼UserId, ProjectId,
{{#tags}}- {{label}}
{{/tags}}