Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

TypeScriptの型定義をPRする技術

ypresto
September 06, 2019

 TypeScriptの型定義をPRする技術

kansai.ts #2での10分LT。 i18n-jsの型定義をDefinitelyTypedに収録したときの型定義作成方法を思い出しながら書きました。

スライド中のリンクが切れちゃってるので、リンクが使えるGoogleスライドもこちらに。
https://docs.google.com/presentation/d/1LoG3e94Y1W-dGWc4e4Tfu749ikwwVqAOkb-WULuEzEo/edit?usp=sharing

oO(なおGoogleスライドからPDF落とすとヒラギノが代替フォントになり、pptxを落とすと角丸吹き出しが四角くなってしまうという事に気がついたのは知見でした・・)

ypresto

September 06, 2019
Tweet

More Decks by ypresto

Other Decks in Technology

Transcript

  1. TypeScript ͷܕఆٛΛ
 13͢Δٕज़ ZQSFTUP:VZB5BOBLB
 LBOTBJUT Picture: Ron Clausen (CC-BY-SA 4.0)

    with trimming & color filter applied by ypresto
 ஫ɿͪΌΜͱTSͷαΠτͱಉ͡γΞτϧͷը૾Ͱ͢
  2. ˝

  3. FYQPSU 54&4.PEVMFT $PNNPO+4 FYQPSUEFGBVMU'PP NPEVMFFYQPSUTEFGBVMU JNQPSU'PPGSPNGPP WBS'PPSFRVJSF GPP EFGBVMU FYQPSU'PP54ઐ༻

    NPEVMFFYQPSUT JNQPSU BT'PPGSPNGPP JNQPSU'PPSFRVJSF GPP 54 WBS'PPSFRVJSF GPP FT.PEVMF*OUFSPQ͕0/ͷ৔߹ɺΑ͠ͳʹରԠ JNQPSU'PPGSPNGPP WBSGPPSFRVJSF GPP  WBS'PPGPP͕&4.PEVMFT  GPPEFGBVMUGPP
  4. FYQPSU 54&4.PEVMFT $PNNPO+4 FYQPSUEFGBVMU'PP NPEVMFFYQPSUTEFGBVMU JNQPSU'PPGSPNGPP WBS'PPSFRVJSF GPP EFGBVMU FYQPSU'PP54ઐ༻

    NPEVMFFYQPSUT JNQPSU BT'PPGSPNGPP JNQPSU'PPSFRVJSF GPP 54 WBS'PPSFRVJSF GPP FT.PEV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P JNQPSU\'PP^GSPNGPP WBS'PPSFRVJSF GPP 'PP FYQPSU'PP54ઐ༻ NPEVMFFYQPSUT JNQPSU BT'PPGSPNGPP WBS'PPSFRVJSF GPP FT.PEVMF*OUFSPQ͕0/ͷ৔߹ɺΑ͠ͳʹରԠ JNQPSU'PPGSPNGPP WBSGPPSFRVJSF GPP  WBS'PPGPP͕&4.PEVMFT  GPPEFGBVMUGPP
  8. FYQPSU 54&4.PEVMFT $PNNPO+4 FYQPSUEFGBVMU'PP NPEVMFFYQPSUTEFGBVMU JNQPSU'PPGSPNGPP WBS'PPSFRVJSF GPP EFGBVMU FYQPSU'PP

    NPEVMFFYQPSUT'PP JNQPSU\'PP^GSPNGPP WBS'PPSFRVJSF GPP 'PP FYQPSU'PP54ઐ༻ NPEVMFFYQPSUT JNQPSU BT'PPGSPNGPP WBS'PPSFRVJSF GPP FT.PEVMF*OUFSPQ͕0/ͷ৔߹ɺΑ͠ͳʹରԠ JNQPSU'PPGSPNGPP WBSGPPSFRVJSF GPP  WBS'PPGPP͕&4.PEVMFT  GPPEFGBVMUGPP import * as React from 'react' ▼ import React from 'react' import React, { useState } from 'react'