TypeScriptã§é¢æ°ãæ¸ãéã«ãæ°ãã¤ãã¦ãããã¨ãè¨è¼ãã¾ããã BMIãè¨ç®ããå¦çãä¾ã«ãã¦èª¬æãããã¾ãã å¼æ°ãobjectå½¢å¼ã«ãã å¼æ°ãobjectå½¢å¼ã«ããäºã§ååä»ãå¼æ°ã«è¿ãå½¢å¼ã«ãªããé ä¸åã«ãªãã¾ããå¼æ°ã®é çªã«æå³ãç¡ãé¢æ°ã§ãã使ç¨æã«ã©ã®é çªã§å¼æ°ã渡ããè¿·ãäºãããã¾ããã const calculateBMI = (p: { height: number; weight: number }) => { // BMIã®è¨ç®å¦ç }; calculateBMI({ height: 170, weight: 60 }); calculateBMI({ weight: 60, height: 170 }); 以ä¸ã¯ãå¼æ°ãobjectã§ã¯ããã¾ããããã®é¢æ°ã ãè¦ãã¨ç¹ã«éåæã¯ç¡ãã¨æãã¾ããããããä¸è¨ã«æ¯ã¹ãã¨æ å ±éãæ¸ãã¾ããç¹ã«height, w
{{#tags}}- {{label}}
{{/tags}}