Skip to content

Commit

Permalink
fix: update tersify (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
unional authored Jan 11, 2018
1 parent 289d525 commit 9149cb5
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 11 deletions.
20 changes: 14 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@
"typescript": "^2.6.2"
},
"dependencies": {
"tersify": "^1.0.4"
"tersify": "^1.1.0"
}
}
9 changes: 8 additions & 1 deletion src/CallRecord.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { tersible, tersify } from 'tersify'
import {
tersible,
tersify,
// @ts-ignore
Tersify,
// @ts-ignore
TersifyOptions
} from 'tersify'

export interface CallRecordData {
inputs: any[],
Expand Down
8 changes: 7 additions & 1 deletion src/isInInterval.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { tersible } from 'tersify'
import {
tersible,
// @ts-ignore
Tersify,
// @ts-ignore
TersifyOptions
} from 'tersify'

export function isInOpenInterval(start: number, end: number) {
return tersible(a => a > start && a < end, () => `(${start}...${end})`)
Expand Down
8 changes: 7 additions & 1 deletion src/isInRange.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { tersible } from 'tersify';
import {
tersible,
// @ts-ignore
Tersify,
// @ts-ignore
TersifyOptions
} from 'tersify'

export function isInRange(start: number, end: number) {
return tersible(a => a >= start && a <= end, () => `[${start}...${end}]`)
Expand Down
8 changes: 7 additions & 1 deletion src/isTypeOf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { tersible } from 'tersify'
import {
tersible,
// @ts-ignore
Tersify,
// @ts-ignore
TersifyOptions
} from 'tersify'

export function isTypeOf(x: 'number' | 'boolean' | 'string') {
return tersible(
Expand Down

0 comments on commit 9149cb5

Please sign in to comment.