Sha256: 5721c168d883d213ecd267f5e5fb9ce374146759ea85a9657a96d3cbddfee4d7

Contents?: true

Size: 611 Bytes

Versions: 9

Compression:

Stored size: 611 Bytes

Contents

# coding: utf-8

module TypeScript
  module Node
    class CompileResult

      # Constructor
      #
      # @param [String] js compiled JavaScript
      # @param [Fixnum] exit_status return code of tsc command
      # @param [String] stdout Standard out
      # @return [String] stderr Standard err
      def initialize(js, exit_status, stdout, stderr)
        @js = js
        @exit_status = exit_status
        @stdout = stdout
        @stderr = stderr
      end

      attr_reader :js, :source_map, :exit_status, :stdout, :stderr

      def success?
        @exit_status == 0
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typescript-node-1.1.1 lib/typescript-node/compile_result.rb
typescript-node-1.1.0 lib/typescript-node/compile_result.rb
typescript-node-1.0.0 lib/typescript-node/compile_result.rb
typescript-node-0.0.6 lib/typescript-node/compile_result.rb
typescript-node-0.0.5 lib/typescript-node/compile_result.rb
typescript-node-0.0.4 lib/typescript-node/compile_result.rb
typescript-node-0.0.3 lib/typescript-node/compile_result.rb
typescript-node-0.0.2 lib/typescript-node/compile_result.rb
typescript-node-0.0.1 lib/typescript-node/compile_result.rb