@microsoft/kiota-abstractions
Version:
Core abstractions for kiota generated libraries in TypeScript and JavaScript
21 lines • 620 B
JavaScript
/**
* 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 function isUntypedNumber(node) {
const proposedNode = node;
return proposedNode && typeof proposedNode.value === "number";
}
/**
* Factory to create an UntypedNumber from a number.
* @param value The number value to create from.
* @returns The created UntypedNumber.
*/
export function createUntypedNumber(value) {
return {
value,
getValue: () => value,
};
}
//# sourceMappingURL=untypedNumber.js.map