chore(typescript): ship to TypeScript

This commit is contained in:
harttle
2019-02-14 22:33:45 +08:00
parent c8de8bcde2
commit c37b330751
64 changed files with 812 additions and 1621 deletions
+8
View File
@@ -0,0 +1,8 @@
import { AssertionError } from './error'
export default function (predicate: any, message: string) {
if (!predicate) {
message = message || `expect ${predicate} to be true`
throw new AssertionError(message)
}
}