class_docstr: For `TypeScript <http://typescriptlang.org/>`_ source code.
  
  .. versionadded:: 1.6
code: def analyse_text(text):
      if re.search(
          "^(import.+(from\s+)?[\"']|"
          "(export\s*)?(interface|class|function)\s+)",
          text,
          re.MULTILINE,
      ):
          return 1.0
  
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, default, using, this, words, combined
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Other
  from pygments.util import get_bool_opt, iteritems
  import pygments.unistring
label_desc: Use image node_id 1 for calling the TypeScriptLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int