Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp core library.version.tryparse

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-core-library > Version > tryParse

Version.tryParse() method

Attempts to parse the input string to construct a new Version object. If the string cannot be parsed, then undefined is returned.

Signature:

static tryParse(versionString: string | undefined | null): Version | undefined;

Parameters

Parameter Type Description
versionString string | undefined | null A version string

Returns:

Version | undefined

The Version object, or undefined if the string could not be parsed.

Clone this wiki locally