mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
631 B
TypeScript
17 lines
631 B
TypeScript
import { compile } from 'closure-compiler';
|
|
|
|
compile('some.source()', {'check-only': null},
|
|
(err: Error, stdout: string, stderr: string): void => {
|
|
console.log('Got', err, 'stdout', stdout, 'stderr', stderr);
|
|
});
|
|
|
|
// No options, Callback wins.
|
|
compile('some.source()', (err: Error, stdout: string, stderr: string): void => {
|
|
console.log('Got', err, 'stdout', stdout, 'stderr', stderr);
|
|
});
|
|
|
|
compile(null, {'js': ['a/f.js', 'a/f2.js'], 'check-only': null},
|
|
(err: Error, stdout: string, stderr: string): void => {
|
|
console.log('Got', err, 'stdout', stdout, 'stderr', stderr);
|
|
});
|