@microsoft/kiota-abstractions
Version:
Core abstractions for kiota generated libraries in TypeScript and JavaScript
27 lines • 1.25 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 the interface for defining an untyped object value. */
export interface UntypedObject extends UntypedNode {
/**
* Gets the value of the UntypedNode as a Record<string, UntypedNode>.
*/
getValue(): Record<string, UntypedNode>;
}
/**
* Type guard to assert that an object instance is an UntypedObject.
* @param node The object to check.
* @returns boolean indicating if the node is an UntypedObject.
*/
export declare const isUntypedObject: (node: UntypedNode) => node is UntypedObject;
/**
* Factory to create an UntypedObject from a Record<string, UntypedNode>.
* @param value The Record<string, UntypedNode> value to create from.
* @returns The created UntypedObject.
*/
export declare const createUntypedObject: (value: Record<string, UntypedNode>) => UntypedObject;
//# sourceMappingURL=untypedObject.d.ts.map