@microsoft/kiota-abstractions
Version:
Core abstractions for kiota generated libraries in TypeScript and JavaScript
19 lines • 492 B
JavaScript
/**
* Type guard to assert that an object instance is an UntypedNull.
* @param node The object to check.
* @returns boolean indicating if the node is an UntypedNull.
*/
export function isUntypedNull(node) {
return node.value === null;
}
/**
* Factory to create an UntypedNull from a boolean.
* @returns The created UntypedNull.
*/
export function createUntypedNull() {
return {
value: null,
getValue: () => null,
};
}
//# sourceMappingURL=untypedNull.js.map