mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Update safeLoad type for js-yaml (#45390)
Co-authored-by: Ryan Frazier <rfrazier@sdl.usu.edu>
This commit is contained in:
parent
a116a8d77d
commit
14f1fea4b0
2
types/js-yaml/index.d.ts
vendored
2
types/js-yaml/index.d.ts
vendored
@ -8,7 +8,7 @@
|
||||
|
||||
export as namespace jsyaml;
|
||||
|
||||
export function safeLoad(str: string, opts?: LoadOptions): any;
|
||||
export function safeLoad(str: string, opts?: LoadOptions): string | object | undefined;
|
||||
export function load(str: string, opts?: LoadOptions): any;
|
||||
|
||||
export class Type {
|
||||
|
||||
@ -125,9 +125,9 @@ type.styleAliases;
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
// $ExpectType any
|
||||
// $ExpectType string | object | undefined
|
||||
yaml.safeLoad(str);
|
||||
// $ExpectType any
|
||||
// $ExpectType string | object | undefined
|
||||
yaml.safeLoad(str, loadOpts);
|
||||
|
||||
// $ExpectType any
|
||||
|
||||
Loading…
Reference in New Issue
Block a user