Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow

Add TypeScript typings check

+8
.sail.yml
···
- install
- build
- sail:parallel:
+
- check
- test
- bundle
- flowgen
···
args:
- run
- build
+
check:
+
image: node:10
+
command:
+
- yarn
+
args:
+
- run
+
- check
bundle:
image: node:10
command:
+3 -1
package.json
···
"scripts": {
"docs:dev": "gatsby develop",
"docs:build": "gatsby build",
+
"check": "tsc --noEmit",
"clean": "bsb -clean-world",
"build": "bsb -make-world",
"watch": "bsb -make-world -w",
···
"refmt": "bsrefmt --in-place **/**/*.{re,rei}",
"flowgen": "./scripts/generate-flow-files.js",
"bundle": "rollup -c rollup.config.js",
-
"prepublishOnly": "run-s clean build bundle flowgen test",
+
"prepublishOnly": "run-s clean build bundle flowgen check test",
"codecov": "codecov"
},
"keywords": [
···
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-plugin-prettier": "^0.6.0",
"rollup-plugin-terser": "^4.0.4",
+
"typescript": "^3.5.3",
"zen-observable": "^0.8.14"
},
"lint-staged": {
+22
tsconfig.json
···
+
{
+
"compilerOptions": {
+
"noEmit": true,
+
"esModuleInterop": true,
+
"noUnusedLocals": true,
+
"rootDir": "./src",
+
"baseUrl": ".",
+
"outDir": "dist/cjs",
+
"lib": ["dom", "esnext"],
+
"jsx": "react",
+
"declaration": false,
+
"module": "es2015",
+
"moduleResolution": "node",
+
"target": "esnext",
+
"strict": true,
+
"noImplicitAny": false,
+
"noUnusedParameters": true,
+
"sourceMap": true,
+
"pretty": true
+
},
+
"include": ["src/**/*.d.ts"]
+
}
+5
yarn.lock
···
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.3.tgz#0eb320e4ace9b10eadf5bc6103286b0f8b7c224f"
integrity sha512-FFgHdPt4T/duxx6Ndf7hwgMZZjZpB+U0nMNGVCYPq0rEzWKjEDobm4J6yb3CS7naZ0yURFqdw9Gwc7UOh/P9oQ==
+
typescript@^3.5.3:
+
version "3.5.3"
+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977"
+
integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==
+
typography-normalize@^0.16.19:
version "0.16.19"
resolved "https://registry.yarnpkg.com/typography-normalize/-/typography-normalize-0.16.19.tgz#58e0cf12466870c5b27006daa051fe7307780660"