React NativeでTypeScriptを使おうと思っていろいろ調べたのですが、 結構つまずいたので備忘録的に残しておこうと思います。 プロジェクトの作成 1. yarn のインストール yarnを使用したいので、yarnを先に入れておきます。 npmでグローバルインストール % npm install -g yarn Homebrewでインストール % brew install yarn 2. react-native-cli のインストール
TypeScript2 + webpack2でのcss-loader, file-loader周辺をなんとかするJavaScriptTypeScriptwebpackcss-modules WebpackとTypeScriptの扱いについて、まだ手探りだが、今のところのプラクティスをまとめたい。 css-loader, file-loaderなどで読み込むリソースが型エラーになるのをなんとかする話 webpack + babel + css-loader という構成のところからwebpack + typescriptにしていくにあたって、js, ts以外のファイルの読み込みは、当然そのままだと型がエラーとなる。 これを解決するのに、2点ほど手順が必要だった。 手順1. 読み込み方法を変更 file-loaderなどはmodule.exports = "some-resource"という形で
The JavaScript Developer's Guide to Ubuntu on Windows 11 with WSL 5 months ago In a world where JavaScript is arguably the most popular tool for building software these days, it seems like it's everywhere now. With node.js, it's on the backend, with Electron it's native on your machine, with React Native, it's native on your phone. There's no doubt that JavaScript is nothing but at least pervasive
TypeScript Language Specification Version 1.8 January, 2016 Microsoft is making this Specification available under the Open Web Foundation Final Specification Agreement Version 1.0 ("OWF 1.0") as of October 1, 2012. The OWF 1.0 is available at http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0. TypeScript is a trademark of Microsoft Corporation. Table of Contents 1 Introduction
In this chapter, we’ll cover some of the most common types of values you’ll find in JavaScript code, and explain the corresponding ways to describe those types in TypeScript. This isn’t an exhaustive list, and future chapters will describe more ways to name and use other types. Types can also appear in many more places than just type annotations. As we learn about the types themselves, we’ll also
Introduction This post is a brain dump of the steps required to set up a Typescript and React project with some explanatory notes – I intend to write about working with Typescript and React in a real world project in more detail soon. Some knowledge of React and of the basics of Typescript is assumed. These instructions will guide you through setting up a new project with Typescript, React, Webpac
相談内容 既存の管理ツールを新しく作り直すために新しいJSフレームワーク/言語使いたいのですが、何を選んだらよいでしょうか? ここで選んだものは今後新しく作る時にも使用していく予定のため、学習コストよりメンテナンスしやすいものを選びたいと考えています。 利用者は社内外で特定の権限を持った人のみであるため、サーバサイドレンダリングはしない予定です。 言語は型があるものを利用したいのですが、TypeScriptとFlowのどちらがよろしいでしょうか? 時間に余裕があれば、テストフレームワークやビルドツールについてもお聞きしたいです。 現在のページ/チーム jQueryなどで書かれている部分が多いですが、変更を加えることが難しくメンテナンスコストが高いです。 サーバサイドをやってる人が片手間で書くJavaScriptといった状況です。 今回新規で数ページを追加する必要があるため、何を利用すれば良
The electron npm package now includes a TypeScript definition file that provides detailed annotations of the entire Electron API. These annotations can improve your Electron development experience even if you're writing vanilla JavaScript. Just npm install electron to get up-to-date Electron typings in your project. TypeScript is an open-source programming language created by Microsoft. It's a sup
最近Vue/Vuexを触っている。 前々から欲しいと思っていたのもあって、習作としてelectronでYouTubeのデスクトップクライアントを作った。 github.com 僕は仕事中はだいたいYouTubeを再生している。映像を見ながらコードを書きたい欲求があった。とはいえ、そのために作業領域を侵食されるのはつらい。 ということで前面に固定する機能と透過率を設定できる機能をつけた。 こんな感じになって便利。 Vueにおいて、TypeScriptを選ぶかFlowを選ぶか Vueにおいて、楽をしたいならTypeScriptを選ぶ方が良い。Flowに比べて、公式のサポートが断然に厚い。 公式ページにもサポートについて1セクション割かれている。 TypeScript Support — Vue.js また、TypeScriptチームがVueとTypeScriptのStarter Kitを公開し
Abstract Breaking Change (possible) From some conversation with @azu on Twitter, I tried to convert codes to TypeScript. This changeset includes some changes for build system. This change only does rewrite codes with TypeScript. To publish d.ts in npm, we need push more patch onto this. Motivation Increase interoperabitily with static typing world like TypeScript or Flowtype. Erase some inconsiste
2017/04/24 追記 Angular CLIを使わずにAngularを始める系の記事、もう古すぎるので参考にしないほうがいいです。 | Angular2 on TypeScriptの最小構成をつくってHello Worldするまでのみちのり https://t.co/XjZafjJ6u4— OKUNOKENTARO (@armorik83) April 22, 2017 参考 GitHub - angular/angular-cli: CLI tool for Angular Angular2によるモダンWeb開発 TypeScriptを使った基本プログラミング 作者: 末次章出版社/メーカー: 日経BP社発売日: 2017/01/18メディア: 単行本この商品を含むブログ (1件) を見る 以下原文 Angular2のquickstart、たしかにその通りにやれば動くんだけど、開発
General Types Number, String, Boolean, Symbol and Object ❌ Don’t ever use the types Number, String, Boolean, Symbol, or Object These types refer to non-primitive boxed objects that are almost never used appropriately in JavaScript code.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く