Skip to content

Commit

Permalink
feat(mod): remove prototype validator
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed May 29, 2023
1 parent ec41043 commit 26b5f6c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
5 changes: 1 addition & 4 deletions factories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { FixedArrayValidator } from "./validators/array/fixed_array.ts";
import { DictionaryValidator } from "./validators/object/dictionary.ts";
import { OptionalValidator } from "./validators/object/optional.ts";
import { NullishValidator } from "./validators/nullish.ts";
import { PrototypeValidator } from "./validators/prototype.ts";
import { FloatValidator } from "./validators/number/float.ts";
import { IntegerValidator } from "./validators/number/integer.ts";
import { PositiveNumberValidator } from "./validators/numeric/positive_number.ts";
Expand Down Expand Up @@ -91,9 +90,7 @@ export const enumerate = /* @__PURE__ */ ctorFn(
export const instance = /* @__PURE__ */ ctorFn(
/* @__PURE__ */ bind(InstanceValidator).expect(message1).build(),
);
export const prototype = /* @__PURE__ */ ctorFn(
/* @__PURE__ */ bind(PrototypeValidator).expect(shouldBeBut).build(),
);

export const object = /* @__PURE__ */ ctorFn(DictionaryValidator);
export const optional = /* @__PURE__ */ ctorFn(OptionalValidator);
export const nullish = /* @__PURE__ */ new NullishValidator();
Expand Down
1 change: 0 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export {
or,
pattern,
positive,
prototype,
single,
string,
symbol,
Expand Down
21 changes: 0 additions & 21 deletions validators/prototype.ts

This file was deleted.

0 comments on commit 26b5f6c

Please sign in to comment.