Make loadAll and safeLoadAll iterators optional

This commit is contained in:
Adam Vernon
2017-11-11 13:41:57 -08:00
committed by GitHub
parent 1cdeb342ee
commit 4f4a60f269

View File

@@ -18,8 +18,8 @@ declare namespace jsyaml {
public static create(schemas: Schema[] | Schema, types: Type[] | Type): Schema;
}
export function safeLoadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): any;
export function loadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): any;
export function safeLoadAll(str: string, iterator?: (doc: any) => void, opts?: LoadOptions): any;
export function loadAll(str: string, iterator?: (doc: any) => void, opts?: LoadOptions): any;
export function safeDump(obj: any, opts?: DumpOptions): string;
export function dump(obj: any, opts?: DumpOptions): string;