UNPKG

290 BTypeScriptView Raw
1import semver = require('../index');
2
3/**
4 * Returns cleaned (removed leading/trailing whitespace, remove '=v' prefix) and parsed version, or null if version is invalid.
5 */
6declare function clean(version: string, optionsOrLoose?: boolean | semver.Options): string | null;
7
8export = clean;