GoJs Adornment in angular

I am trying to get work following gojs adornment in an angular app.

However I am stuck with following error message.

I am using gojs 2.1 npm package in angular. Please help!

Could you please confirm that the TypeScript compiler is using the go.d.ts definitions file for GoJS version 2.1 ?

Hi Walter,

I use ES6 syntax import * as go from ‘gojs/release/go’;

I am not sure is this the correct way to use.

Could you please refer any documentation?

Please note that I am using “gojs”: “^2.1.50”, “gojs-angular”: “^1.0.19” and “typescript”: “~4.3.2” version.

As you can see at:
gojs-angular-basic/app.component.ts at master · NorthwoodsSoftware/gojs-angular-basic · GitHub
This works:

import * as go from 'gojs';

I do not understand why you are getting that TypeScript compiler error, when similar code at:
GoJS/ScrollingTableScript.ts at master · NorthwoodsSoftware/GoJS · GitHub line 66
does not get that compiler error.

If I remove the arguments “0,9” for the function “SectorButton” no more error messages. Maybe is there any other way to pass parameters in this case?

That is not the error message that you are showing.
Try using declarations as any.

Apologies not to make it clear. Below is the screenshot that has no errors if I removed the arguments to “SectorButton”

You didn’t follow my suggestion of declaring as any.

          $("SectorButton", 0 as any, 90 as any,  // start angle, sweep angle,