Open shaunc opened 7 years ago
I am a newbie in typescript following typescript node starter tutorial. I ran dts-gen on excel4node v1.2.1. The generated d.ts has error at:
excel4node
v1.2.1
d.ts
export namespace Workbook { namespace prototype { function addWorksheet(name: any, opts: any): any; function createStyle(opts: any): any; function getStringIndex(val: any): any; function setSelectedTab(id: any): void; function write(fileName: any, handler: any): void; function writeToBuffer(): any; ...
-- typescript complains "src/types/excel4node.d.ts(475,15): error TS2300: Duplicate identifier 'prototype"
I would guess this is a bug triggered by source code referencing functions explicitly through the prototype property.... Will I be ok if I just delete the offending definition? After all above I see:
prototype
export class Workbook { constructor(opts: any); addWorksheet(name: any, opts: any): any; createStyle(opts: any): any; getStringIndex(val: any): any; setSelectedTab(id: any): void; write(fileName: any, handler: any): void; writeToBuffer(): any; }
I'm seeing the same thing with dts-gen -m snoowrap as well.
dts-gen -m snoowrap
I am a newbie in typescript following typescript node starter tutorial. I ran dts-gen on
excel4node
v1.2.1
. The generatedd.ts
has error at:-- typescript complains "src/types/excel4node.d.ts(475,15): error TS2300: Duplicate identifier 'prototype"
I would guess this is a bug triggered by source code referencing functions explicitly through the
prototype
property.... Will I be ok if I just delete the offending definition? After all above I see: