<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pospome</author_name>
  <author_url>https://blog.hatena.ne.jp/pospome/</author_url>
  <blog_title>pospomeのプログラミング日記</blog_title>
  <blog_url>https://www.pospome.work/</blog_url>
  <categories>
    <anon>Node.js</anon>
  </categories>
  <description>タイトルの通り、bluebird の spread, finally を利用すると、 undefined is not a function が発生してしまった。しかも、特定のケースのみ発生する。原因はTypeScriptの import のミスだった。今回の実装では以下のように bluebird を読み込んでるけど・・・ import Promise = require('bluebird');undefined is not a function が発生しているスクリプトでは読み込んでいなかった・・・。 つまり、nodeの生promiseを利用して spread, finally を使って…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pospome.work%2Fentry%2F20150810%2F1439222804&quot; title=&quot;node + bluebird + typescript で spread, finally を利用したら undefined is not a function - pospomeのプログラミング日記&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>2015-08-10 01:06:44</published>
  <title>node + bluebird + typescript で spread, finally を利用したら undefined is not a function</title>
  <type>rich</type>
  <url>https://www.pospome.work/entry/20150810/1439222804</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
