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