mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
fix ci, disable strict path type checks by default
This commit is contained in:
parent
3ac6b42e16
commit
a3e4c86a4c
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Deploy to GitHub Pages
|
name: Build and Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
|
@ -43,8 +43,8 @@ import { trace } from './trace'
|
||||||
// └────────────┤ MD File ├─────┴─────────────────┘
|
// └────────────┤ MD File ├─────┴─────────────────┘
|
||||||
// └─────────┘
|
// └─────────┘
|
||||||
|
|
||||||
const STRICT_TYPE_CHECKS = true
|
const STRICT_TYPE_CHECKS = false
|
||||||
const HARD_EXIT_ON_FAIL = true
|
const HARD_EXIT_ON_FAIL = false
|
||||||
|
|
||||||
function conditionCheck<T>(name: string, label: 'pre' | 'post', s: T, chk: (x: any) => x is T) {
|
function conditionCheck<T>(name: string, label: 'pre' | 'post', s: T, chk: (x: any) => x is T) {
|
||||||
if (STRICT_TYPE_CHECKS && !chk(s)) {
|
if (STRICT_TYPE_CHECKS && !chk(s)) {
|
||||||
|
|
Loading…
Reference in a new issue