Skip to content

Commit

Permalink
feat(unknown): add validator for any value
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed May 17, 2023
1 parent d64083f commit c870c00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions validators/unknown.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2023-latest Tomoki Miyauchi. All rights reserved. MIT license.
// This module is browser compatible.

import { display, ScalarValidator } from "../utils.ts";

@display("unknown")
export class UnknownValidator extends ScalarValidator {
is(): boolean {
return true;
}
}

0 comments on commit c870c00

Please sign in to comment.