Jarves\AssetHandler\AssetInfo::isTypeScript PHP Method

isTypeScript() public method

Returns true if this is a typescript asset.
public isTypeScript ( ) : boolean
return boolean
    public function isTypeScript()
    {
        if ($this->getContentType()) {
            return 'text/typescript' === strtolower($this->getContentType());
        }
        if ($this->getPath()) {
            $exploded = explode('.', $this->getPath());
            return 'ts' === strtolower(array_pop($exploded));
        }
        return false;
    }