Renaming of existing types turned out to be too complicated because the code depends on checker.typeToString, and there is no way that I know of that would allow renaming of an existing type.
10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
import {format} from 'util'
|
|
|
|
export function error(message: string, ...values: any[]) {
|
|
process.stderr.write(format(message + '\n', ...values))
|
|
}
|
|
|
|
export function info(message: string, ...values: any[]) {
|
|
process.stdout.write(format(message + '\n', ...values))
|
|
}
|