<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d-kimuson</author_name>
  <author_url>https://blog.hatena.ne.jp/d-kimuson/</author_url>
  <blog_title>Mobile Factory Tech Blog</blog_title>
  <blog_url>https://tech.mobilefactory.jp/</blog_url>
  <categories>
    <anon>Vue.js</anon>
  </categories>
  <description>こんにちは、ブロックチェーンチームの id:d-kimsuon です Vue2 では TypeScript がサポートされており、公式の TypeScript のサポートのドキュメント に従うことで TypeScript で書いていくことができます しかし、素直に書いていくと any 型になってしまったり、実際とは異なる型付けになってしまうポイントがあります この記事では TypeScript で Vue2 (Option API) を書くときに型を厳格にしやすい書き方等を紹介します 省略可能な props には明示的に PropType&lt;型 | undefined&gt; する 型安全な例 型安全…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mobilefactory.jp%2Fentry%2F2022%2F06%2F29%2F110000&quot; title=&quot;Vue2 (nuxt2) で TypeScript の型を守る Tips - Mobile Factory Tech Blog&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>2022-06-29 11:00:00</published>
  <title>Vue2 (nuxt2) で TypeScript の型を守る Tips</title>
  <type>rich</type>
  <url>https://tech.mobilefactory.jp/entry/2022/06/29/110000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
