@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 UntypedString.
* @param node The object to check.
* @returns boolean indicating if the node is an UntypedString.
*/
export function isUntypedString(node) {
const proposedNode = node;
return proposedNode && typeof proposedNode.value === "string";
}
/**
* Factory to create an UntypedString from a string.
* @param value The string value to create from.
* @returns The created UntypedString.
*/
export function createUntypedString(value) {
return {
value,
getValue: () => value,
};
}
//# sourceMappingURL=untypedString.js.map