How to avoid generating a .d.ts when it is already existed? I think it should copy the original .d.ts file #1199
Answered
by
cspotcode
lz1998
asked this question in
_ Off-topic
|
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. |
Answered by
cspotcode
Mar 2, 2021
Replies: 1 comment 1 reply
|
This is a |
1 reply
Answer selected by
cspotcode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a
tscquestion, not ats-nodequestion, so I'm going to close it as off-topic.