diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 84f13415b..0c0ee4ddb 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -567,6 +567,7 @@ export function parseArray(data?: RawNode[], validTypes?: YTNodeConstructor | YT * @param validTypes - YTNode types that are allowed to be parsed. */ export function parse[]>(data: RawData, requireArray: true, validTypes?: K): ObservedArray> | null; +export function parse>(data: RawData, requireArray: true, validTypes?: K): ObservedArray> | null; export function parse(data?: RawData, requireArray?: false | undefined, validTypes?: YTNodeConstructor | YTNodeConstructor[]): SuperParsedResult; export function parse(data?: RawData, requireArray?: boolean, validTypes?: YTNodeConstructor | YTNodeConstructor[]) { if (!data) return null;