Share
Embed
Salariesを支えるチーム開発の現場
■ パーソルキャリア採用サイト
■ techtekt(テックテクト)
パーソルキャリアのエンジニアブログです。“みんなの「はたらく」をテックでつくる”をコンセプトに、技術、組織、学びなど、さまざまな情報を発信しています。
■ NUTION(ニューション)
パーソルキャリアのデザイン組織「NUTION」のブランドサイトです。「デザインの力で、はたらくを変え、社会を変えていく。」をステートメントとし、デザインの価値を広める活動をしています。
■TECH Street
パーソルキャリアが主催する各社の現場で活躍しているITエンジニアやテクノロジー人材から、ITテクノロジーに関するさまざまなテーマの事例や知見が学べる勉強会コミュニティです。
PERSOL CAREER Dev | techtekt PRO
November 11, 2021
Transcript
93 slides
-
*OEFY ❏ ಋೖ ❏ ॴଐ෦ॺհ ❏ 4BMBSJFTհ ❏ νʔϜ։ൃ ❏
4BMBSJFTνʔϜͷ։ൃମ੍ͳͲͷհ ❏ νʔϜ։ൃΛࢧ͑ΔϑϩϯτΤϯυ ❏ νʔϜ։ൃΛࢧ͑ΔόοΫΤϯυ -
ࣗݾհ ❏ ࠤ ༤ඈ ❏ ݄ ύʔιϧΩϟϦΞೖࣾ ❏ ৬ྺ ❏
&$γεςϜͷύοέʔδ։ൃ ❏ ҿ৯ళͰͷࡏ࣌ؒཧγεςϜ։ൃ ❏ ͓หαʔϏε։ൃ ❏ ٕज़ ❏ /FYUKT /VYUKT 8FC$PNQPOFOUT -
αʔϏε։ൃ෦ ֓ཁ ॴଐ෦ॺ ςΫϊϩδʔຊ෦ ΤϯδχΞϦϯά౷ׅ෦ αʔϏε։ൃ෦ ैۀһ ςΫϊϩδʔຊ෦ ໊ αʔϏε։ൃ෦
໊ ݄࣌ ࣄۀ༰ ৽نαʔϏεͷاըɾ։ൃ طଘαʔϏεͷӡ༻ɾอकɾՃ։ൃ ϛογϣϯ ʮΤϯδχΞϦϯάͷྗͰɺ৽نαʔϏεΛૉૣ͘ఏڙ͢Δʯ -
νʔϜߏ ݄࣌ #VTTJOFTT ໊ ❏اը ❏Ӧۀ ❏ࣄۀࢧԉ ❏ϚʔέςΟϯά &OHJOFFS ໊
❏ϑϩϯτΤϯυ ❏όοΫΤϯυ ❏Πϯϑϥ ❏σʔλαΠΤϯε %FTJHOFS ໊ ❏6* ❏69 ❏άϥϑΟοΫ -
։ൃϑϩʔ #VTJOFTT &OHJOFFS ཁ݅ #VTJOFTT &OHJOFFS %FTJHOFS &OHJOFFS &OHJOFFS #VTJOFTT
&OHJOFFS %FTJHOFS 6*σβΠϯ ٕज़બఆ ։ൃ ϦϦʔε -
։ൃϑϩʔ #VTJOFTT &OHJOFFS ཁ݅ #VTJOFTT &OHJOFFS %FTJHOFS &OHJOFFS &OHJOFFS #VTJOFTT
&OHJOFFS %FTJHOFS 6*σβΠϯ ٕज़બఆ ։ൃ ϦϦʔε -
։ൃϑϩʔ ։ൃ ։ൃ ։ൃ ։ൃ 'SPOUFOE #BDLFOE *OGSBTUSVDUVSF 6*࣮ ੩త
"1*༷࡞ Πϯϑϥߏங ϞοΫ"1*ͱଓ ϞοΫ"1*࡞ "1*࣮ -
ϑϩϯτΤϯυͱόοΫΤϯυ͔Εͯͷ։ൃ ❏ ݉͢Δ͔͔ΕΔ͔νʔϜʹΑ༷ͬͯʑ ❏ ։ൃॳΤϯδχΞ໊͕ମ੍ ❏ ϑϩϯτΤϯυ୲ ❏ όοΫΤϯυ୲ ❏
Πϯϑϥॾʑͷઃܭ 1K. ❏ ͦΕͧΕ͕ಘҙΛ୲ͯ͠ૉૣ͍։ൃΛࢦ͢ ❏ ਓ͕૿͖͑ͯͨݱࡏɺδϣϒϩʔςʔγϣϯΛ࣮ࢪ ❏ ఆظతʹ։ൃϝϯόͷϝΠϯͷ࡞ۀྖҬΛม͑Δ ❏ ݸਓͷεΩϧΞοϓ ❏ ݎ࿚ͳνʔϜ࡞ΓɾଐਓԽͷ੍ -
"UPNJD%FTJHO Ҿ༻ IUUQTBUPNJDEFTJHOCSBEGSPTUDPNDIBQUFS ❏ ཁૉʹ͚ͯͦΕΒΛΈ߹Θ࣮ͤͯ͢Δ6*σβΠϯͷख๏ ❏ খ͍͞ίϯϙʔωϯτͷ߹ମ ❏ "UPNT͔Βॱʹ࣮͢Δ ❏
มߋ͕ଟ͘ͳΓ͕ͪͳ6*࣮ΛͰ͖ΔݶΓมߋʹڧ͍ߏͰ࣮͍ͨ͠ -
4BMBSJFTͰͷ"UPNT import { default as MuiButton, ButtonProps } from '@material-
ui/core/Button'; import { makeStyles } from '@material-ui/core/styles'; interface IButtonProps extends ButtonProps { width?: string; height?: string; } const useStyles = makeStyles({ root: { width: ({ width }: IButtonProps) => width || '', height: ({ height }: IButtonProps) => height || '', } }); export const Button = (props: IButtonProps): JSX.Element => { const styles = useStyles(props); const classes = { root: styles.root }; return ( <MuiButton classes={classes} {...props}> {props.children} </MuiButton> ); }; ❏ "UPNTͦΕҎ্ղ͞Εͯ ༻͞ΕΔ͜ͱ͕ͳ͍ίϯϙʔ ωϯτ ❏ .6*Λϥοϓ ❏ NBLF4UZMFTΛ֦ͬͯு ❏ QSPQTͰTUZMFมߋ ❏ 6*ϥΠϒϥϦΛϥοϓ͢Δཧ༝ ❏ ֦ுͰ͖Δ ❏ มߋରԠ࣌ͷӨڹൣғ -
ϝϯόͱͷڞ༗ ❏ ࠷৽ΛࣗಈσϓϩΠ ❏ EFWFMPQϒϥϯνϚʔδ͢Δ࣌ʹ DPNQPOFOUTԼͷϑΝΠϧʹมߋ ͕͋ͬͨ߹ʹσϓϩΠΛ࣮ߦ ❏ ߋ৽͞ΕΔͱ4MBDLͰ௨ on:
push: branches: - develop paths: - 'components/**' - name: Slack Notification on SUCCESS if: success() uses: tokorom/action-slack-incoming-webhook@main env: INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} with: text: Storyookを更新しました! attachments: | [ { "color": "good", "fields": [ { "title": "Storybook URL", "value": "(Storybookのデプロイ先のURL)" } ] } ] -
"1*ͱͷଓ ❏ ϑϩϯτΤϯυͷ։ൃʹϞοΫ"1*ͱଓ͍ͯ͠Δ ❏ ϞοΫ"1*ͱ ❏ ࢼ࡞Ͱ࡞ΔܕͷΑ͏ͳΠϝʔδ ❏ ࣮ࡍͷ%#ͱଓͤͣʹܾ·ͬͨσʔλΛϨεϙϯε ❏
ZBNMϑΝΠϧΛௐͯ͠ཉ͍͠σʔλΛϨεϙϯεͰ͖Δ ❏ ϑϩϯτΤϯυ߹ͰϨεϙϯεͷσʔλߏΛมߋͯ͠Β͍͍ͨΑ͏ͳ߹Ͱ ࣮ࡍͷ"1*Λ࣮લʹมߋͰ͖Δ ❏ ڥຖʹ"1*ͷଓઌΛม͍͑ͯΔ fetch(“https://example.com/api/endpoint”) -
ڥʹ͍ͭͯ ❏ ϩʔΧϧڥ ❏ IUUQMPDBMIPTU ❏ ϩʔΧϧͰͷ։ൃ༻ͷڥ ❏ ϩʔΧϧͰαʔόΛݐͯͯ։ൃ͢Δ ❏
։ൃڥ ❏ IUUQTEFWFYBNQMFDPN ❏ ຊ൪ʹࣅͤͨߏͰߏங ❏ ϑϩϯτΤϯυͱόοΫΤϯυ݁߹ ͯ͠ͷಈ࡞֬ೝ ❏ ϏδωεαΠυσβΠφͱͷ࿈ܞ ❏ εςʔδϯάڥ ❏ IUUQTTUHFYBNQMFDPN ❏ ϦϦʔεલͷςετͰ༻ ❏ ຊ൪ڥ ❏ IUUQTFYBNQMFDPN ❏ ࣮ࡍʹϦϦʔεɺՔಇ͍ͯ͠Δڥ -
ڥຖʹ"1*ͷଓઌΛมߋ͢Δ ❏ FOWϑΝΠϧΛ࡞ͯ͠ڥมΛ༻ҙ͢Δ ❏ ϩʔΧϧڥͰϞοΫ"1*ɺ։ൃڥ։ൃڥͷ"1* ❏ ϩʔΧϧڥͰ FOWMPDBMɺ։ൃڥͰFOWEFWͳͲڥઃఆϑΝΠϧΛ͚Δ API_HOST=http://0.0.0.0:4010 PORT=3000
API_HOST=https://dev.example.com/api PORT=8080 .env.local .env.dev -
σʔλͷྲྀΕ 4UFQ ϒϥβ͔Βೖྗ͞ ΕͨσʔλΛऔಘ ೖྗ ม "1*ίʔϧ ม ඳը 4UFQ
ೖྗ͞ΕͨσʔλΛ "1*ͷϦΫΤετͷܗ ࣜʹม 4UFQ "1*Λίʔϧ͢Δ 4UFQ "1*͔ΒϨεϙϯε͞ ΕͨσʔλΛ 6*ʹ߹Θͤܗࣜʹม ͢Δ 4UFQ ϒϥβඳը͢Δ -
σʔλͷྲྀΕ ೖྗ ʙ ม ඳը "1*ίʔϧ ม ೖྗ ม {
userName: "John", age: "20" } { userName: "John", age: 20, invitationCode: null } 'PSNͷೖྗσʔλ มޙͷσʔλ -
σʔλͷྲྀΕ ೖྗ ʙ ม // 変換 function convertFormToEntity(data: SignupForm): SignupConvertedData
{ const convertedData: SignupConvertedData = { userName: data.userName, age: Number(data.age), invitationCode: data.invitationCode || null }; return convertedData; } // Formのデータの型定義 type SignupForm = { userName: string; age: string; // Formは文字列になる invitationCode?: string; // undefinedまたは文字列 } // リクエストの形式に変換したデータの型定義 type SignupConvertedData = { userName: string; age: number; // 数値に変更 invitationCode: string | null; // 文字列またはnull } ඳը "1*ίʔϧ ม ೖྗ ม -
σʔλͷྲྀΕ "1*ίʔϧ public async signup(data: SignupConvertedData) { const result =
await fetch(“/signup”, { method: ‘post’, body: data }); return result; } ඳը "1*ίʔϧ ม ೖྗ ม -
σʔλͷྲྀΕ ม { userName: "John", createdAt: Thu Oct 28 2021
18:00:00 GMT+0900 } Ϩεϙϯεͷσʔλ ඳը͢Δσʔλ { userName: "John", createdAt: “2021/10/28 18:00” } ඳը "1*ίʔϧ ม ೖྗ ม -
ͳͥ͜ΜͳʹͦΕͧΕͷॲཧΛׂ͍ͯ͠Δͷ͔ 4UFQ ϒϥβ͔Βೖྗ͞ ΕͨσʔλΛऔಘ ೖྗ ม "1*ίʔϧ ม ඳը 4UFQ
ೖྗ͞ΕͨσʔλΛ "1*ͷϦΫΤετͷܗ ࣜʹม 4UFQ "1*Λίʔϧ͢Δ 4UFQ "1*͔ΒϨεϙϯε͞ ΕͨσʔλΛ 6*ʹ߹Θͤܗࣜʹม ͢Δ 4UFQ ϒϥβඳը͢Δ -
ϩάΠϯͷ߹ʹ͍ճͤΔ { userName: "John", createdAt: Thu Oct 28 2021 18:00:00
GMT+0900 } Ϩεϙϯεͷσʔλ ඳը͢Δσʔλ { userName: "John", createdAt: “2021/10/28 18:00” } ඳը "1*ίʔϧ ม ೖྗ ม -
ͦΕͧΕ۠ͬͯςετΛॻ͘͜ͱ͕Ͱ͖Δ 4UFQ ϒϥβ͔Βೖྗ͞ ΕͨσʔλΛऔಘ ೖྗ ม "1*ίʔϧ ม ඳը 4UFQ
ೖྗ͞ΕͨσʔλΛ "1*ͷϦΫΤετͷܗ ࣜʹม 4UFQ "1*Λίʔϧ͢Δ 4UFQ "1*͔ΒϨεϙϯε͞ ΕͨσʔλΛ 6*ʹ߹Θͤܗࣜʹม ͢Δ 4UFQ ϒϥβඳը͢Δ ݁߹ςετ σʔλมͷςετ "1*ίʔϧͷςετ σʔλมͷςετ -
ϑϩϯτΤϯυύʔτ ·ͱΊ ❏ "UPNJD%FTJOH ❏ খ͍͞ίϯϙʔωϯτͷ߹ମ ❏ มߋʹڧ͍ߏ ❏ 4UPSZCPPL
❏ ίϯϙʔωϯτͷΧλϩά ❏ σʔλͷྲྀΕ ❏ ॲཧ͝ͱʹ۠Δ ❏ ςετॏཁ -
ࣗݾհ ❏ ా ༟ݾ ❏ ݄ ύʔιϧΩϟϦΞೖࣾ ❏ ৬ྺ ❏
ϕϯνϟʔاۀͰ4&.όϦϡʔνΣʔϯվળΛ ߦ͏ɻ ❏ ৽نࣄۀͷاըΛߦ͍ɺاըӡӦΛ͓͜ͳͬͨࣄ ۀΛࢠձࣾԽ͠ࣄۀऀʹɻ ❏ αʔϏεΛΤϯδχΞͱͯࣗ͠Ͱ࡞Γ͍ͨࢥ͍ ͔Βݱ৬ ❏ ٕज़ ❏ /VYUKT &YQSFTTKT 'BTU"1* -
εΩʔϚۦಈ։ൃ ❏ ༻ޠ ❏ εΩʔϚ"1*ͷ༷ ❏ "1*༷ԿΛड͚ͱͬͯԿΛ݁Ռͱͯ͠ฦ͢ͷ͔ΛఆΊͨͷ ❏ ར ❏
"1*ͷ࣮͕ͳ͍ঢ়ଶͰϑϩϯτΤϯυ͕։ൃݕূΛߦ͑Δ "1*༷Λ͡Ίʹఆٛ͠ɼ "1*༷ΛݩʹόοΫΤϯυɾϑϩϯτΤϯυ͕ಉ࣌ʹ։ൃΛਐΊ͍ͯ͘ -
0QFO"1*ͷϑΥʔϚοτʹैͬͯ࡞͞ΕͨZBNM schemes: - "https" - "http" paths: /pet: post: tags:
- "pet" summary: "Add a new pet to the store" description: "" operationId: "addPet" consumes: - "application/json" - "application/xml" produces: - "application/xml" - "application/json" parameters: - in: "body" name: "body" description: "Pet object that needs to be added to the store" required: true schema: $ref: "#/definitions/Pet" responses: "405": description: "Invalid input" security: - petstore_auth: - "write:pets" - "read:pets" -
0QFO"1* ❏ ར ❏ "1*༷Λڞ௨ͷϑΥʔϚοτͰ؆୯ʹهड़Ͱ͖Δ ❏ (*UΛͬͯιʔείʔυͱಉ༷ʹཧ͢Δ͜ͱ͕Ͱ͖Δ ❏ पลπʔϧ͕๛ ❏
༷Λهࡌ͢Δ͚ͩͰ.PDLαʔό͕࡞ΕΔ ❏ ΠϯλϥΫςΟϒͳ8FCυΩϡϝϯτΛ؆୯ʹ࡞͢Δ͜ͱ͕Ͱ͖Δ ❏ εΩʔϚۦಈ։ൃʹγφδʔ͕͋Δ ❏ εΩʔϚ "1*༷ ͷఆٛ ❏ .PDLαʔόͷߏங -
SFEPDDMJ ❏ υΩϡϝϯτ࡞ ❏ IUNMΛϨϯμϦϯάͯ͘͠ΕΔ $ npx redoc-cli bundle specification.yml
-o .doc/index.html ❏ υΩϡϝϯταʔόىಈ ❏ "1*%PDVNFOU4FSWFSΛ্ཱͪ͛ͯ͘ΕΔ $ npx redoc-cli server specification.yml -
.PDL4FSWFS ❏ 1SJTN ❏ 0QFO"1*ϑΝΠϧΛݩʹϑϩϯτΤϯυ͔Β0QFO"1*Ͱఆٛͨ͠ϞοΫαʔό ΛͨͯΔ͜ͱ͕Ͱ͖Δ ❏ 0QFO"1*ϑΝΠϧΛهड़ͯ͠EPDLFSDPNQPTFZBNMΛ࡞ ❏ EPDLFSDPNQPTFVQίϚϯυΛ͏ͱ.PDLαʔό্ཱ͕͕ͪΔ
version: '3' services: api-mock: image: stoplight/prism volumes: - .:/api command: > mock -h 0.0.0.0 /api/specification.yml ports: - 4010:4010 -
ׂલͷঢ়ଶ paths: /pet/{petId}: get: description: "Returns a single pet" parameters:
- name: "petId" in: "path" description: "ID of pet to return" type: "integer" responses: "200": description: "successful operation" schema: type: "object" properties: name: type: "string" "1*ͷ1BUI ϝιου ύϥϝʔλ Ϩεϙϯε TQFDJGJDBUJPOZBNM -
ׂํ paths: /pet/{petId}: get: description: "Returns a single pet" parameters:
- name: "petId" in: "path" description: "ID of pet to return" type: "integer" responses: "200": description: "successful operation" schema: type: "object" properties: name: type: "string" TQFDJGJDBUJPOZBNM /api ├── specification.yml ├── models │ └── pet.yml └── paths └── getPet.yml -
VTFSNPEFMTQFUZBNM ❏ NPEFMT"1*ͷϨεϙϯεϦΫΤετ ͷܕΛఆٛ͢ΔϑΝΠϧ͕ଘࡏ͢Δ title: Pet description: Petの情報 type: "object"
properties: name: type: "string" QFUZBNM -
VTFSQBUITHFU1FUZBNM ❏ QBUITͷதʹ"1*͝ͱʹ͍ͯ͠·͢ ❏ SFGΛ͔ͭͬͯఆٛͨ͠NPEFMΛݺͼग़͠ description: "Returns a single pet"
parameters: - name: "petId" in: "path" description: "ID of pet to return" type: "integer" responses: "200": description: "successful operation" schema: $ref: "../models/pet.yaml" HFU1FUZBNM -
description: "Returns a single pet" parameters: - name: "petId" in:
"path" description: "ID of pet to return" type: "integer" responses: "200": description: "successful operation" schema: $ref: "../models/pet.yaml" HFU1FUZBNM paths: /pet/{petId}: get: $ref: “./paths/getPet.yaml” TQFDJGJDBUJPOZBNM title: Pet description: Petの情報 type: "object" properties: name: type: "string" QFUZBNM -
ͪ͜ΒίϯύΠϥʔʹ௨ΔͰ͠ΐ͏͔ const addNum = (a: number, b: number) => {
console.log(a + b); } addNum('a', 2); -
֎෦͔Βड͚औͬͨΛ࣮ߦ͢Δ߹ const body = JSON.parse(request.body); const addNum = (a: number,
b: number) => { console.log(a + b); } addNum(body.a, body.b); { "a": "string", "b":2 } -
5ZQF(VBSEΛೖΕΔ͜ͱͰ͛Δ const body = JSON.parse(request.body); const addNum = (a: number,
b: number) => { if (typeof a !== 'number' || typeof b !== 'number') { throw new Error('型違いの値を受け取りました'); } console.log(a + b); } addNum(body.a, body.b); -
Ҿ͕0CKFDUͷ߹ const body = JSON.parse(request.body); interface ISchoolNums { studentNum: number;
teacherNum: number; } const addObj = (a: ISchoolNums) => { if (!('studentNum' in a) || typeof a.studentNum !== 'number' || !('teacherNum' in a) || typeof a.teacherNum !== 'number') { throw new Error('型違いの値を受け取りました'); } console.log(a.studentNum + a.teacherNum); } addObj(body); -
ཧܗͱͯ͠ interface ISchoolNums { studentNum: number; teacherNum: number; } const
addObj = (a: ISchoolNums) => { if (typeof a !== 'ISchoolNums') { throw new Error('型違いの値を受け取りました'); } console.log(a.studentNum + a.teacherNum); } -
5ZQF(VBSEΛJPUTΛͬͯॻ͘ import * as t from 'io-ts' import { isLeft
} from 'fp-ts/Either'; const SchoolNums = t.type({ studentNum: t.number, teacherNum: t.number }) type ISchoolNums = t.TypeOf<typeof SchoolNums>; const addObj = (a: ISchoolNums) => { const either = SchoolNums.decode(a) if (isLeft(either)) { throw new Error('型違いの値を受け取りま した'); } console.log(a.studentNum + a.teacherNum); } interface ISchoolNums { studentNum: number; teacherNum: number; } const addObj = (a: ISchoolNums) => { if (!('studentNum' in a) || typeof a.studentNum !== 'number' || !('teacherNum' in a) || typeof a.teacherNum !== 'number' ) { throw new Error('型違いの値を受け取りま した'); } console.log(a.studentNum + a.teacherNum); } 5ZQF4DSJQUPOMZ VTFJPUT -
ཧܗͱൺͯΈΔ const addObj = (a: ISchoolNums) => { const either
= SchoolNums.decode(a) if (isLeft(either)) { throw new Error('型違いの値を受け取りま した'); } console.log(a.studentNum + a.teacherNum); } ཧܥ const addObj = (a: ISchoolNums) => { if (typeof a !== 'ISchoolNums') { throw new Error('型違いの値を受け取り ました'); } console.log(a.studentNum + a.teacherNum); } ཧܥ VTFJPUT -
JOUFSGBDF෦ import * as t from 'io-ts' import { isLeft
} from 'fp-ts/Either'; const SchoolNums = t.type({ studentNum: t.number, teacherNum: t.number }) type ISchoolNums = t.TypeOf<typeof SchoolNums>; interface ISchoolNums { studentNum: number; teacherNum: number; } 5ZQF4DSJQUPOMZ VTFJPUT -
5ZQF(VBSEΛJPUTΛͬͯॻ͘ ❏ EFDPEFͷฦΓ&JUIFSܕͱ͍͏-FGUܕ͔3JHIUܕΛ࣋ͪ·͢ ❏ 3JHIUܕͷ߹ൺֱ͍ͨ͠ܕͱಉ͡Ͱ͋Δ͜ͱΛࣔ͢ ❏ -FGUܕͷ߹ൺֱ͍ͨ͠ܕͱҧ͏͜ͱΛࣔ͠·͢ export declare type
Either<E, A> = Left<E> | Right<A>; export interface Left<E> { readonly _tag: 'Left'; readonly left: E; } export interface Right<A> { readonly _tag: 'Right'; readonly right: A; } -
5ZQF(VBSEΛJPUTΛͬͯॻ͘ const addObj = (a: ISchoolNums) => { const either
= SchoolNums.decode(a) if (isLeft(either)) { throw new Error('型違いの値を受け取りま した'); } console.log(a.studentNum + a.teacherNum); } const addObj = (a: ISchoolNums) => { if (!('studentNum' in a) || typeof a.studentNum !== 'number' || !('teacherNum' in a) || typeof a.teacherNum !== 'number' ) { throw new Error('型違いの値を受け取りま した'); } console.log(a.studentNum + a.teacherNum); } 5ZQF4DSJQUPOMZ VTFJPUT -
Τϥʔϝοηʔδ ❏ JPUTSFQPSUFSTΛ͏͜ͱͰΤϥʔϝοηʔδΛࣗಈతʹ࡞ const SchoolNums = t.type({ studentNum: t.number, teacherNum:
t.number }) type ISchoolNums = t.TypeOf<typeof SchoolNums>; const addObj = (a: ISchoolNums) => { const either = SchoolNums.decode(a) if (isLeft(either)) { console.log(reporter.report(either)); return; } console.log(a.studentNum + a.teacherNum); } -
όοΫΤϯυύʔτ ·ͱΊ ❏ ։ൃϑϩʔ ❏ εΩʔϚۦಈ։ൃΛߦ͏͜ͱͰόοΫΤϯυɾϑϩϯτΤϯυ͕ฏߦͯ͠։ൃ͕ Ͱ͖Δ ❏ 0QFO"1*εΩʔϚۦಈ։ൃͱγφδʔ͕ߴ͍ͷͰ͓͢͢ΊͰ͢ ❏
࣭ ❏ ֎෦ͱͷͰόϦσʔγϣϯΛ͔ͬ͠Γͱߦ͏͜ͱͰαʔϏεͷ࣭͕อͯ· ͢ ❏ 5ZQF4DSJQUͰ5ZQF(VBSEॻ͘ͷେมͰ͕͢ɺJPUTΛ͑ղܾͰ͖Δ -
ຊબߟ͕։͍࢝ͯ͠·͢ʂ ݄࣌Ͱͷใ ❏ ΤϯδχΞίʔεʢ˞ಛఆͷϙδγϣϯ֬Ͱଐʣ ▪エンジニア ・サービス企画開発本部:新規サービスの開発に上流の企画段階から参画するエンジニア ・事業戦略本部:「EPEB」などの大規模プロダクトの開発を担当するエンジニア ▪データサイエンティスト ・テクノロジー本部:最新技術を活用しながら、データドリブンで新規事業開発を行うデータサイエンティスト ・事業戦略本部:主に「EPEB」に蓄積された個人・法人データを分析し事業に還元するデータサイエンティスト
▪*5企画 事業目標達成に向けた*5化の促進を行うために*5戦略の立案から企画・構想、プロジェクトマネジメン トを担当