Skip to content

Instantly share code, notes, and snippets.

Avatar
🐪

Bnaya Peretz Bnaya

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

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

run yarn tsc4p1 = "using private name" error

run yarn tsc4p0 = "using private name" error

View README.md

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

run yarn tsc4p1 = Crash!!

run yarn tsc4p0 = "private name error is expected"

View README.md

Examples for mobx-state-tree + TypeScript article

@Bnaya
Bnaya / README.md
Created Jul 20, 2020
Basic example of fetch api + expressjs/multer using files and text fields
View README.md

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

View package.json
{
"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"
}
View hey.ts
import assert from "assert";
assert.strictEqual(4, 4);
View hey.ts
import assert from "assert";
assert.strictEqual(4, 4);
@Bnaya
Bnaya / jsconfig.json
Last active May 6, 2020
webdriver why you hate me so much
View jsconfig.json
{
"typeAcquisition": {},
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": true
},
"include": ["wat.js"],
}
@Bnaya
Bnaya / PseudoOpaqueType-jsdocs-and-more.ts
Created Mar 30, 2020
PseudoOpaqueType jsdocs and more
View PseudoOpaqueType-jsdocs-and-more.ts
{
"name": "giltype",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"typescript": "^3.8.3"
}
}