Skip to content

Instantly share code, notes, and snippets.

Bicycle mood

Alexander Myshov myshov

Bicycle mood
View GitHub Profile
myshov /
Created May 11, 2018 — forked from gaearon/
A Gentle Introduction to Prepack, Part 1


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.
myshov / Car.spec.ts
Created Mar 5, 2021 — forked from armueller/Car.spec.ts
Typeguard Transparency Helper Example
View Car.spec.ts
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 = {