You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Protractor version 4.0.0 is out and you can now write Protractor tests with TypeScript! Hooray! If you are unfamiliar with TypeScript there are probably a lot of questions like: What’s TypeScript? How should we setup the project? Can I mix and match JavaScript with TypeScript in Protractor? So let’s get started… What’s TypeScript?Typescript is a typed superset of JavaScript that compiles to plain
先日 TypeScript の新しいメジャーバージョン 2.0 のコンパイラの beta 版がリリースされました. Announcing TypeScript 2.0 Beta What's new in TypeScript コンパイラのチェックの強化や非 null 型,tagged union など,いくつかの機能が追加・強化され,自分の趣味プロジェクトでも恩恵に与れそうだったので試しに移行してみました. 移行してみたのは下記の Electron でつくり中の Twitter Client アプリ(React+Redux)で,全体で大体 15000 行ぐらいです. github.com 下記の手順で修正してみました. コンパイラをアップデートしてビルドしてみる --noImplicitThis,--noUnusedLocals, --noUnusedParameters を有効にしてみ
WebSocketを用いたオープンソースなリアルタイムチャットシステムrespassをリリースしました。 TL; DR 無職2人が3週間で https://respass.sketch-glass.io/ を作りました。 ソースコードはGitHub上で公開されています。 github.com 自己紹介 @minamorl 無職 Pythonエンジニア GitHub @seanchas_t 無職 C++/TypeScriptエンジニア GitHub はじめに この記事は主に技術者に向けて書かれていますが、そうでない方にも読めるような表現を重視しています。難解な用語にはなるべく注釈をいれました。技術的な話よりも「無職2人がいかにして3週間で作り上げたのか?」という開発フローの話に重きをおいたので、非技術者の方にも楽しく読んでいただけると思います。 なぜ作ったか オープンソースなチャット 近年、
@Quramy です。先日TypeScript2.0 betaがリリースされました。 1.xからの変更点についても、@vvakame 先生が TypeScript 2.0 Beta 変更点 にしっかり纏めてくれています。すごい。 このまとめで端折られているのが、"Module resolution enhancements" というテーマです。今日はこのテーマについてメモを書いておこうと思います。 具体的には、tsconfig.jsonのcompilerOptions に baseUrl, paths, rootDirsというキーが追加されました。どのような機能なのか、それぞれ見ていきましょう。 paths, baseUrl paths は、モジュール名とそのモジュールの.tsファイルの配置場所のマッピングをtscに教えてあげるための機能です。pathsを利用する場合、baseUrlもセッ
Today we’re excited to roll out our beta release of TypeScript 2.0. If you’re not familiar with TypeScript yet, you can start learning it today on our website. To get your hands on the beta, you can download TypeScript 2.0 Beta for Visual Studio 2015 (which will require VS 2015 Update 3), or just run This release includes plenty of new features, such as our new workflow for getting .d.ts files, bu
Automatic type acquisition -- concerns Some background: given a type reference, i.e. in tsconfig.json "types" : ["jquery"], or /// <reference types="jquery" />, here are the lookup locations to resolve"jquery"` reference: location specified by --typesRoot if defined node_modules node_module@types automatic type definition inclusion in compilations, include all "types" packages automatically value
this-types for functions (#6739) Defines ability to define type of this for the scope of a function. If you're in a class, this is assumed to have the type of the class itself. You can still override this by giving an explicit type to this. Strict this checks Problem: cognitive burden by creating a distinction between types of methods and properties with function types. Looked at performance again
Check non-undefined properties are initialized in the constructor with --strictNullChecks #8476 - Uninitialized non-null properties in classes Definitely going to break some code patterns e.g. a separate init method e.g. initialization is done in a factory method e.g. initialization is done in a second call by the caller We might end up with another commandline switch, which is not great You may w
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く