From 0e80560de40b4d3f3255a8ca4086328c52c2c8b1 Mon Sep 17 00:00:00 2001 From: Ross Holdway Date: Thu, 18 Jan 2024 22:45:06 +0000 Subject: [PATCH] Fix missing options type on enums --- src/rules/enum.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rules/enum.ts b/src/rules/enum.ts index 7b8faa2..057758b 100644 --- a/src/rules/enum.ts +++ b/src/rules/enum.ts @@ -7,7 +7,10 @@ import { Codes, Rule } from "../mod.ts"; */ export type enums = typeof enums; -export function enums(values: readonly T[]): Rule; +export function enums( + values: readonly T[], + options?: { required_error?: string; invalid_enum_error?: string; } +): Rule; export function enums( values: readonly unknown[],