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