@microsoft/kiota-abstractions
Version:
Core abstractions for kiota generated libraries in TypeScript and JavaScript
27 lines • 1.18 kB
TypeScript
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
import { UntypedNode } from "./untypedNode.js";
/** Defines an interface for defining an untyped array. */
export interface UntypedArray extends UntypedNode {
/**
* Gets the value of the UntypedNode as an array of UntypedNodes.
*/
getValue(): UntypedNode[];
}
/**
* Type guard to assert that an UntypedNode instance is an UntypedArray.
* @param node The UntypedNode to check.
* @returns boolean indicating if the node is an UntypedArray.
*/
export declare const isUntypedArray: (node: UntypedNode) => node is UntypedArray;
/**
* Factory to create an UntypedArray from an array of UntypedNodes.
* @param value The value to create from.
* @returns The created UntypedArray.
*/
export declare const createUntypedArray: (value: UntypedNode[]) => UntypedArray;
//# sourceMappingURL=untypedArray.d.ts.map