How to avoid generating a .d.ts when it is already existed? I think it should copy the original .d.ts file #1199
-
I have a TypeScript project. Most of the code is written in TS, but there is a file generated by protobufjs called Project: https://github.com/ProtobufBot/js-pbbot src/proto/proto.d.ts import * as $protobuf from "protobufjs";
/** Namespace onebot. */
export namespace onebot {
/** Properties of a Frame. */
interface IFrame {
/** Frame botId */
botId?: (Long|null);
...... Run lib/proto/proto.d.ts export = $root;
declare var $root: $protobuf.Root;
import $protobuf = require("protobufjs/minimal"); I think it should copy the original .d.ts file when .d.ts file is existed, but it doesn't. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is a |
Beta Was this translation helpful? Give feedback.
This is a
tsc
question, not ats-node
question, so I'm going to close it as off-topic.