<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zuckey_17</author_name>
  <author_url>https://blog.hatena.ne.jp/zuckey_17/</author_url>
  <blog_title>zuckey blog</blog_title>
  <blog_url>https://blog.zuckey17.org/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>昨日の記事を公開したところ、 blog.zuckey17.org ↓のように、 ライブラリと型定義のimportとで分けている必要はあるのか？ という指摘をいただきました。 const { createConnection } = require(&quot;mysql&quot;); // ライブラリのimport import { Connection, MysqlError } from &quot;mysql&quot;; // 型定義のimport 僕も実装をしている際に、以下のような書き方をしようとしましたが、 import * as mysql from &quot;mysql&quot;; トランスパイル後のjsを実行するとランタイムで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.zuckey17.org%2Fentry%2F2018%2F03%2F18%2F232211&quot; title=&quot;TypeScriptで&amp;quot;SyntaxError: Unexpected token import&amp;quot;になったときの解決方法 - zuckey 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>2018-03-18 23:22:11</published>
  <title>TypeScriptで&quot;SyntaxError: Unexpected token import&quot;になったときの解決方法</title>
  <type>rich</type>
  <url>https://blog.zuckey17.org/entry/2018/03/18/232211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
