From c4d5b01acfe0cac31f94743a57e8e619178ba563 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 25 Aug 2020 09:43:54 +1000 Subject: feat: update to TypeScript 4.0 (#6514) --- std/encoding/_yaml/loader/loader.ts | 2 +- std/encoding/_yaml/loader/loader_state.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'std/encoding/_yaml/loader') diff --git a/std/encoding/_yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts index 216e315f2..18bab93f5 100644 --- a/std/encoding/_yaml/loader/loader.ts +++ b/std/encoding/_yaml/loader/loader.ts @@ -813,7 +813,7 @@ function readFlowCollection(state: LoaderState, nodeIndent: number): boolean { valueNode, ); } else if (isPair) { - (result as Array<{}>).push( + (result as ArrayObject[]).push( storeMappingPair( state, null, diff --git a/std/encoding/_yaml/loader/loader_state.ts b/std/encoding/_yaml/loader/loader_state.ts index 60a7ccabc..81edeb28d 100644 --- a/std/encoding/_yaml/loader/loader_state.ts +++ b/std/encoding/_yaml/loader/loader_state.ts @@ -22,7 +22,8 @@ export interface LoaderStateOptions { onWarning?(this: null, e?: YAMLError): void; } -export type ResultType = [] | {} | string; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export type ResultType = any[] | Record | string; export class LoaderState extends State { public documents: Any[] = []; -- cgit v1.2.3