2 compilation errors with ts-demo

This issue has been tracked since 2022-03-13.

environnement:

% node --version
v16.13.0

sequence:

  • install clientIO/joint
  • in the demo/ts-demo directory
    • run npm i
    • run grunt

task "watch is running

Running "newer:copy:docs" (newer) task

Running "copy:docs" (copy) task
Copied 1 file

Running "newer-postrun:copy:docs:8:/Users/thomaspeugeot/go/src/github.com/clientIO/joint/node_modules/grunt-newer/.cache" (newer-postrun) task

Running "watch" task
Waiting...
  • open the index.ts file

Issue 1 on line 20:

let $paper: JQuery<HTMLElement>
Argument of type '{ el: JQuery<HTMLElement>; width: number; height: number; gridSize: number; model: joint.dia.Graph<joint.dia.Graph.Attributes, joint.dia.ModelSetOptions>; ... 6 more ...; cellViewNamespace: typeof joint.shapes; }' is not assignable to parameter of type 'Options'.
  Object literal may only specify known properties, and 'el' does not exist in type 'Options'.ts(2345)

image

Issue 2 in line 226:

Property 'remove' does not exist on type 'HighlighterView<unknown>'. Did you mean to access the static member 'HighlighterView<unknown>.remove' instead?ts(2576)

image

More Details About Repo
Owner Name clientIO
Repo Name joint
Full Name clientIO/joint
Language JavaScript
Created Date 2009-09-11
Updated Date 2022-12-06
Star Count 3717
Watcher Count 155
Fork Count 817
Issue Count 53

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date