mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-23 21:35:37 +08:00
Make loadAll and safeLoadAll iterators optional
This commit is contained in:
4
types/js-yaml/index.d.ts
vendored
4
types/js-yaml/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user