UNPKG

315 BTypeScriptView Raw
1import semver = require('../index');
2import SemVer = require('../classes/semver');
3/**
4 * Return the parsed version as a string, or null if it's not valid.
5 */
6declare function valid(
7 version: string | SemVer | null | undefined,
8 optionsOrLoose?: boolean | semver.Options,
9): string | null;
10
11export = valid;