:(type annotation) - Forces the type - Type changes -const x: string
as(type assertion) - Forces type conversion - Type changes -const x = "a" as string
satisfies- Only "validates" the type - Type preserved -const x = "a" satisfies string
Seonglae Cho
Seonglae Cho: (type annotation) - Forces the type - Type changes - const x: string as (type assertion) - Forces type conversion - Type changes - const x = "a" as string satisfies - Only "validates" the type - Type preserved - const x = "a" satisfies string