UNPKG

@aws-sdk/util-user-agent-node

Version:

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-user-agent-node/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-node) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-user-agent-node.svg)](https://www.npmjs.com/

9 lines (8 loc) 338 B
/** * Sanitizes a TypeScript version string for user-agent reporting. * Handles dist tags (e.g., "latest", "beta"), version prefixes (e.g., "^", "~"), * and semver strings. Returns undefined if the version is invalid. * * @internal */ export declare const getSanitizedDevTypeScriptVersion: (version?: string) => string | undefined;