From b90fd6b651720f37663d359d3f5514f246a21e6d Mon Sep 17 00:00:00 2001 From: sinclair Date: Thu, 23 Nov 2023 21:12:43 +0900 Subject: [PATCH] Reimplement Index Types --- src/typebox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typebox.ts b/src/typebox.ts index 7c972027..5fff0655 100644 --- a/src/typebox.ts +++ b/src/typebox.ts @@ -46,7 +46,7 @@ export const PatternStringExact = `^${PatternString}$` // -------------------------------------------------------------------------- // Into // -------------------------------------------------------------------------- -export const Into = (func: () => T): T => func() +export function Into(func: () => T): T { return func() } // -------------------------------------------------------------------------- // Helpers // --------------------------------------------------------------------------