Skip to content

Commit e0f1300

Browse files
authored
fix: align yaml parsing with js-yaml v5 APIs
1 parent 5be8ce7 commit e0f1300

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/yaml.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function loadYaml<T>(data: string, opts?: yaml.LoadOptions): T {
2626
* @returns An array of deserialized Kubernetes objects.
2727
*/
2828
export function loadAllYaml(data: string, opts?: yaml.LoadOptions): any[] {
29-
const ymls = yaml.loadAll(data, null, opts) as any[];
29+
const ymls = yaml.loadAll(data, null, opts);
3030
return ymls.map((yml) => {
3131
const obj = yml as KubernetesObject;
3232
const type = getSerializationType(obj.apiVersion, obj.kind);

0 commit comments

Comments
 (0)