Search found 7 matches

by carlTI5
Tue Feb 01, 2022 6:21 am
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5361

Re: Typescript compile error in index.d.ts

It would have been this line in tsconfig under compiler options:
"strict":true,

that would have been picking up that no return type was being explicitly stated.

Thanks for the feedback.
by carlTI5
Mon Jan 31, 2022 2:14 pm
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5361

Re: Typescript compile error in index.d.ts

Yes, could do. Would be interested to know what they come back with.
by carlTI5
Mon Jan 31, 2022 11:41 am
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5361

Re: Typescript compile error in index.d.ts

On further thought that line should probably be:
close():void;
by carlTI5
Mon Jan 31, 2022 11:33 am
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5361

Re: Typescript compile error in index.d.ts

That line was as follows: "@types/switch-scripting": "https://github.com/enfocus-switch/types-switch-scripting/archive/1.1.0.tar.gz" This was an old project that came over from the previous version of Switch. Manually updated the package.json & package-lock.json to the below:...
by carlTI5
Mon Jan 31, 2022 10:01 am
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5361

Typescript compile error in index.d.ts

The following error is thrown when using SwitchScriptTool to compile to a sscript file: Error: TypeScript standard output: C:/Program Files/Enfocus/Enfocus Switch/SwitchScriptTool/obfuscator/node_modules/@types/switch-scripting/index.d.ts(880,3): error TS7010: 'close', which lacks return-type annota...
by carlTI5
Fri Nov 26, 2021 8:51 am
Forum: Node.js scripting
Topic: XML property not assignable to DatasetModel
Replies: 2
Views: 2832

Re: XML property not assignable to DatasetModel

Thanks for the note on this.
by carlTI5
Wed Nov 24, 2021 9:29 am
Forum: Node.js scripting
Topic: XML property not assignable to DatasetModel
Replies: 2
Views: 2832

XML property not assignable to DatasetModel

A per the title of the topic I have a question as to why VS Code indicates to me that the property XML is not assignable to DatasetModel?

I have attached a screenshot of this error:
Not assignable error
Not assignable error
QUESTION.png (237.54 KiB) Viewed 2832 times
Documentation states that allowed values for dataset model are as follows: XML, JDF, XMP, Opaque