From 2e5d4b051558b860800490a70ed34346178078bb Mon Sep 17 00:00:00 2001 From: Bond <49605145+ccbond@users.noreply.github.com> Date: Fri, 10 Nov 2023 09:02:31 +0800 Subject: [PATCH] Fix typo error (#103) Co-authored-by: Daniel Rosenwasser --- src/validate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validate.ts b/src/validate.ts index 266138b1..53fe9584 100644 --- a/src/validate.ts +++ b/src/validate.ts @@ -1,5 +1,5 @@ import * as ts from 'typescript'; -import { Result, success, error, Success } from './result'; +import { Result, success, error } from './result'; const libText = `interface Array { length: number, [n: number]: T } interface Object { toString(): string } @@ -29,7 +29,7 @@ export interface TypeChatJsonValidator { * them. The default for this property is `false`, but an application can set the property to `true` for schemas * that don't permit null values. */ - stripNulls: boolean; + stripNulls: boolean; /** * Transform JSON into TypeScript code for validation. Returns a `Success` object if the conversion is * successful, or an `Error` object if the JSON can't be transformed. The returned TypeScript source code is