Skip to content

Instantly share code, notes, and snippets.

View myshov's full-sized avatar
🚲
bycyle mood

Alexander Myshov myshov

🚲
bycyle mood
View GitHub Profile
@myshov
myshov / Car.spec.ts
Created March 5, 2021 16:12 — forked from armueller/Car.spec.ts
Typeguard Transparency Helper Example
import { isType } from './typeguardHelper';
import { Car, carRuleSet, Engine, engineRuleSet, Wheel, wheelRuleSet } from './Car';
const mockEngine: Engine = {
cylinders: 8,
maxSpeed: 7400,
fuelType: 'diesel'
};
const mockWheel: Wheel = {
@myshov
myshov / prepack-gentle-intro-1.md
Created May 11, 2018 06:55 — forked from gaearon/prepack-gentle-intro-1.md
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.