اشتراک‌ها
TypeScript 3.1 RC منتشر شد

Today we’re happy to announce the availability of the release candidate (RC) of TypeScript 3.1. Our intent with the RC is to gather any and all feedback so that we can ensure our final release is as pleasant as possible. 

TypeScript 3.1 RC منتشر شد
اشتراک‌ها
قالب ایجاد پروژه ASP.NET Core / Angular4

  • Template pages using Angular4 and TypeScript
  • RESTful API Backend using ASP.NET Core MVC Web API
  • Database using Entity Framework Core
  • Authentication based on OpenID Connect
  • API Documentation using Swagger
  • Webpack2 for managing client-side libraries
  • Theming using Bootstrap 
قالب ایجاد پروژه  ASP.NET Core / Angular4
اشتراک‌ها
سایت reddit و استفاده از Typescript

Why We Chose Typescript?
requirements:
- Must have types.
- Must have good tooling already.
- Powers major production apps.
- Our devs should be able to onboard fairly quickly.
- Should work on both the client and the server.
- Good library support.

سایت reddit و استفاده از Typescript
اشتراک‌ها
بررسی Typeof و Type Queries در TypeScript

TypeScript uses the typeof keyword for capturing anonymous types. Despite the same name, it is very different from JavaScript's typeof operator — in fact, the two can only appear in mutually exlusive places. 

بررسی Typeof و Type Queries در TypeScript
اشتراک‌ها
سربارگزاری توابع در TypeScript

TypeScript has some "interesting" limitations when it comes to overloading functions. But it also offers you some options when you need more flexibility in declaring functions, including both optional parameters and infinite parameter lists.

 

سربارگزاری توابع در TypeScript
اشتراک‌ها
ایجاد اپلیکیشن آنگولار با typescript
: The purpose of this article is to
Provide a working guidance on building AngularJS applications using TypeScript and powered by ASP.NET vNext backend
Experiment with building web applications using facilities provided by and mindset required by Visual Studio Code 
ایجاد اپلیکیشن آنگولار با typescript
نظرات مطالب
معرفی افزونه‌های مفید VSCode جهت کار با Angular
دو افزونه‌ی تایپ‌اسکریپتی مفید دیگر
- MoveTS کار تغییرنام و یا تغییر مکان فایل‌های ts. را با اصلاح ارجاعات به آن‌ها ساده‌تر می‌کند.
- TypeScript Hero می‌تواند برای حذف ارجاعاتی که در ماژول جاری استفاده نشده‌اند، بکارگرفته شود. همچنین تجربه‌ی کار با TSLint را نیز بهبود می‌بخشد.
// file -> preferences -> settings
"typescriptHero.resolver.organizeOnSave": true,
نظرات مطالب
مبانی TypeScript؛ تنظیمات TypeScript در ویژوال استودیو
یک نکته: یافتن شماره نگارش کامپایلر TypeScript در حال استفاده‌ی توسط ویژوال استودیو
الف) package manager console را باز کنید و سپس دستور tsc -v را صادر کنید.
ب) فایل پروژه (csproj) را باز کرده و مدخل TypeScriptToolsVersion آن‌را بررسی کنید. این شماره نگارش مقدم است بر عددی که با tsc -v مشاهده می‌کنید.