Skip to main content

InitTemplateBase.isPlatformSupported() method

Determines whether the current platform is supported.

Signature​

isPlatformSupported(platforms: string[] | undefined): boolean;

Parameters​

Parameter

Type

Description

platforms

string[] | undefined

The array of supported platform identifiers, or undefined if no platforms are specified.

Returns​

boolean

true if the current platform is supported, false otherwise.

Remarks​

This method checks platform compatibility using a two-tier matching strategy. First, it looks for an exact match with the current platform-architecture combination (e.g., darwin-arm64). If not found, it checks for a platform-only match (e.g., darwin). Returns false if the platforms array is undefined, empty, or contains no matches for the current execution environment.


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.