Skip to content

Instantly share code, notes, and snippets.

@valentinmakov
valentinmakov / typeExample.ts
Last active July 26, 2020 12:00
Type example
interface IObject {
id: string
}
// long and ugly typing
const receiveDifferentTypes = (argument: string | 5 | IObject | null): number | {key: string} | undefined | (() => string) => {
if (argument === null) {
return undefined
}
@salmazov
salmazov / package.json
Last active October 3, 2018 09:46 — forked from mburakerman/package.json
Webpack 4 config.js (Stylus to CSS and Babel) 👌 The Simplest Usage 👌
{
"name": "webpack-stylus",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",