mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 02:59:44 -06:00
@@ -1,8 +1,20 @@
|
||||
// @flow
|
||||
|
||||
import {readValue, Struct, makeType, Ref, registerPackage} from 'noms';
|
||||
import {
|
||||
invariant,
|
||||
Kind,
|
||||
makeCompoundType,
|
||||
makePrimitiveType,
|
||||
makeType,
|
||||
NomsMap,
|
||||
NomsSet,
|
||||
readValue,
|
||||
Ref,
|
||||
registerPackage,
|
||||
SetLeafSequence,
|
||||
Struct
|
||||
} from 'noms';
|
||||
import type {ChunkStore, Package} from 'noms';
|
||||
import {invariant, Kind, NomsMap, NomsSet, SetLeafSequence, makeCompoundType, makePrimitiveType} from 'noms';
|
||||
|
||||
type RoundTypeEnum = 0 | 1 | 2;
|
||||
const Seed = 0;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
// @flow
|
||||
|
||||
export function invariant(exp: boolean, message: string = 'Invariant violated') {
|
||||
if (!exp) {
|
||||
throw new Error(message);
|
||||
}
|
||||
export function invariant(exp: any, message: string = 'Invariant violated') {
|
||||
if (process.env.NODE_ENV === 'production') return;
|
||||
if (!exp) throw new Error(message);
|
||||
}
|
||||
|
||||
export function notNull<T>(v: ?T): T {
|
||||
|
||||
Reference in New Issue
Block a user