LicenseInfo Interface
Detached, immutable component metadata; reading it never grants licensing authority.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| customerName | The company the license is issued to: the organization of the Text Control account's billing address, or the account's ID when it has none. |
| expiresAt | For a trial, the end of its 30-day period as an ISO 8601 UTC string; absent for Developer and OEM licenses. |
| issuedAt | For a trial, the start of its 30-day period as an ISO 8601 UTC string; absent for Developer and OEM licenses. |
| isValid | Whether the license was valid when this information was read; Developer and OEM licenses are always valid. |
| licenseId | The license ID, TRIAL-V2- or LIC-V2- followed by a UUID; every license file of the same serial number has the same ID. |
| majorVersion | The licensed major version, read from the product code of the license: SH-0200-XA-S is version 2.0, which covers every 2.x release. |
| products | The covered components, SheetEditor and ServerSheetControl; every license from the Text Control Account covers both. |
| trialSecondsRemaining | Remaining whole seconds rounded up; omitted for perpetual licenses. |
| type | The license type: trial, developer or oem. The declared eval is never issued. |
Examples
Pass the LicenseInfo value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { LicenseInfo } from '@txtextcontrol/tx-sheet-control-server';
function inspectLicenseInfoIsValid(licenseInfo: LicenseInfo) {
const value = licenseInfo['isValid'];
console.log('LicenseInfo.isValid', value);
}