Skip to content

Instantly share code, notes, and snippets.

View Bnaya's full-sized avatar
🐪

Bnaya Peretz Bnaya

🐪
View GitHub Profile
@Bnaya
Bnaya / .gitignore
Last active December 13, 2020 11:28
Lambda + api gateway + CF = serve zip
# package directories
node_modules
jspm_packages
# Serverless directories
.serverless

Re-export class + intermediate variable = "using private name" error

run yarn tsc4p1 = "using private name" error

run yarn tsc4p0 = "using private name" error

commonjs re-export of js + deceleration emit = crash!

run yarn tsc4p1 = Crash!!

run yarn tsc4p0 = "private name error is expected"

Examples for mobx-state-tree + TypeScript article

@Bnaya
Bnaya / README.md
Created July 20, 2020 08:36
Basic example of fetch api + expressjs/multer using files and text fields

Basic example of fetch api + expressjs/multer using files and text fields

{
"name": "guykedem",
"version": "1.0.0",
"main": "index.js",
"author": "Bnaya Peretz",
"license": "MIT",
"devDependencies": {
"collections-deep-equal": "^2.0.0",
"typescript": "^3.9.6"
}
import assert from "assert";
assert.strictEqual(4, 4);
import assert from "assert";
assert.strictEqual(4, 4);
@Bnaya
Bnaya / jsconfig.json
Last active May 6, 2020 19:06
webdriver why you hate me so much
{
"typeAcquisition": {},
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": true
},
"include": ["wat.js"],
}
@Bnaya
Bnaya / PseudoOpaqueType-jsdocs-and-more.ts
Created March 30, 2020 17:55
PseudoOpaqueType jsdocs and more
{
"name": "giltype",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"typescript": "^3.8.3"
}
}