<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Shiro-Neko</author_name>
  <author_url>https://blog.hatena.ne.jp/Shiro-Neko/</author_url>
  <blog_title>白猫のメモ帳</blog_title>
  <blog_url>https://shironeko.hateblo.jp/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>こんにちは。 本が読みたい気持ちと首が痛い気持ちが拮抗しています。 さて、前回がinterfaceの比較だけで終わってしまったので、typeについて見ていきます。 型アノテーション(Type Annotation) とりあえず型を使ってみます。こんな感じで定数とか変数とかにヒントのような形で付ける事ができます。 これを型アノテーション(Type Annotation)といいます。普通にstringとかnumberも型アノテーションに使えます。 item2には型アノテーションはついていないですが、型推論がされるので結果的には型は決まります。 // nameのstringとかpriceのnumbe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshironeko.hateblo.jp%2Fentry%2F2023%2F10%2F15%2F130051&quot; title=&quot;TypeScriptのtype（型エイリアス）がややこしいけど面白い - 白猫のメモ帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-15 13:00:51</published>
  <title>TypeScriptのtype（型エイリアス）がややこしいけど面白い</title>
  <type>rich</type>
  <url>https://shironeko.hateblo.jp/entry/2023/10/15/130051</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
