Brand New World with Annotated Types

487 Views

June 06, 25

スライド概要

TSKaigi 2025 事後勉強会
https://smarthr.connpass.com/event/355359/

profile-image

Web Developer in Japan

シェア

またはPlayer版

埋め込む »CMSなどでJSが使えない場合

ダウンロード

関連スライド

各ページのテキスト
1.

Brand New World w/ Annotated Types #tskaigi2025_kataritai 2025/06/06

3.

Type as Annotation

5.

tsc o -g ts

6.

type stripping via amaro(swc)

7.

Type as Annotation

8.

Stage: 1

9.

class Person { name: string; constructor(name: string) { this.name = name; } TypeScript getGreeting(): string { return Hello, ${this.name}; } }

10.

Types as Annotation class Person { name /*: string*/; constructor(name /*: string*/) { this.name = name; } getGreeting()/*: string*/ { return Hello ${this.name}; } }

11.

🤔 ?? How ?? 🤔

12.

Standardise TypeScript in ECMA

13.

Comments not wrapped with /* */

14.

const name: string = "Jxck" Treat as Comment

15.

const name: ここはどうせコメント なので何を書いても 怒られない??🤔 = "Jxck"

16.

Brand new World !! 🤩🤩🤩

17.

SQL as Comments const user: logging(warn) = "Jxck"

18.

Cooments as Comments const regist: (FIXME) regist って 日本語は無いって 何度言ったら、、 = true

19.

Decorator as comments const user: select id, name from Users where user id = "Jxck"

20.

Brain f**k as comments const user: ++++++++[>++++++++++++++<-]>+++.< >+.< >--.< >---------.< >+++++.< >-------.< = "Jxck"

21.

Type as Annotation 🤔 Your World as Comments Your Preprocessor

22.

🤔 ?? Possible ?? 🤔

23.

Last discussion: 2023/09 tl;dr; Work In Very Early Progress

24.

🤔