Comparing version 0.1.11 to 0.1.12
@@ -54,2 +54,5 @@ "use strict"; | ||
} | ||
if (type._tag === "NullType") { | ||
return "null"; | ||
} | ||
throw new Error(`Unsupported type "${type._tag}".\nPlease use one of:\n\t- InterfaceType (t.type)\n\t- ArrayType (t.array)\n\t- NumberType (t.number)\n\t- StringType (t.string)\n\t- BooleanType (t.boolean)`); | ||
@@ -56,0 +59,0 @@ } |
@@ -14,2 +14,3 @@ import * as tNoDesc from "io-ts"; | ||
boolean: ConstantWithDescription<T["boolean"]>; | ||
null: ConstantWithDescription<T["null"]>; | ||
keyof: FunctionWithDescription<T["keyof"]>; | ||
@@ -16,0 +17,0 @@ literal: FunctionWithDescription<T["literal"]>; |
@@ -43,2 +43,3 @@ "use strict"; | ||
sorry.boolean.description = description; | ||
sorry.null.description = description; | ||
sorry.keyof = addDescriptionToFunction(sorry.keyof); | ||
@@ -45,0 +46,0 @@ sorry.literal = addDescriptionToFunction(sorry.literal); |
@@ -66,2 +66,5 @@ /* eslint-disable no-use-before-define */ | ||
} | ||
if (type._tag === "NullType") { | ||
return "null"; | ||
} | ||
@@ -68,0 +71,0 @@ throw new Error( |
@@ -24,2 +24,3 @@ import * as tNoDesc from "io-ts"; | ||
boolean: ConstantWithDescription<T["boolean"]>; | ||
null: ConstantWithDescription<T["null"]>; | ||
keyof: FunctionWithDescription<T["keyof"]>; | ||
@@ -49,2 +50,3 @@ literal: FunctionWithDescription<T["literal"]>; | ||
sorry.boolean.description = description; | ||
sorry.null.description = description; | ||
sorry.keyof = addDescriptionToFunction(sorry.keyof); | ||
@@ -51,0 +53,0 @@ sorry.literal = addDescriptionToFunction(sorry.literal); |
{ | ||
"name": "polyfact", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
855633
36
1344