20231112.0.0 • Published 1 month ago

@types/google-closure-compiler v20231112.0.0

Weekly downloads
2,279
License
MIT
Repository
github
Last release
1 month ago

Installation

npm install --save @types/google-closure-compiler

Summary

This package contains type definitions for google-closure-compiler (https://github.com/chadkillingsworth/closure-compiler-npm).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-closure-compiler.

index.d.ts

// Type definitions for google-closure-compiler
// Project: https://github.com/chadkillingsworth/closure-compiler-npm
// Definitions by: Evan Martin <http://neugierig.org>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

// Note: the types seen in the JSDoc are wrong:
//   https://github.com/ChadKillingsworth/closure-compiler-npm/issues/21
// Be careful to read the code when choosing types.

import * as child_process from 'child_process';

// The "json_streams" compiler flag lets the compiler accept/produce
// arrays of JSON objects in this shape for input/output.
interface JSONStreamFile {
    path: string;
    src: string;
    srcmap?: string | undefined;  // TODO(evan): pass through source maps.
}

interface Compiler {
    javaPath: string;
    logger: (...args: any[]) => void;
    spawnOptions: { [key: string]: string };

    run(callback?: (exitCode: number, stdout: string, stderr: string) => void):
        child_process.ChildProcess;

    getFullCommand(): string;
}

type CompileOption = string | boolean;
type CompileOptions = string[] | {[key: string]: (CompileOption|CompileOption[])};
export var compiler: {
    new (opts: (CompileOptions | string[]), extraCommandArgs?: string[]): Compiler;

    JAR_PATH: string;
    COMPILER_PATH: string;
    CONTRIB_PATH: string;
};

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:23 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Evan Martin.

20231112.0.0

1 month ago

0.0.20

7 months ago

0.0.21

7 months ago

0.0.22

6 months ago

0.0.19

3 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13-alpha

8 years ago

0.0.12-alpha

8 years ago

0.0.11-alpha

8 years ago

0.0.10-alpha

8 years ago

0.0.9-alpha

8 years ago

0.0.8-alpha

8 years ago

0.0.3-alpha

8 years ago

0.0.2-alpha

8 years ago