html5sortable icon indicating copy to clipboard operation
html5sortable copied to clipboard

[WIP] Update rollup-plugin-typescript to rollup-plugin-typescript2

Open kaffarell opened this issue 5 years ago • 6 comments
trafficstars

Will fix #560

kaffarell avatar Oct 14 '20 12:10 kaffarell

Coverage Status

Coverage increased (+1.3%) to 78.082% when pulling e9373d2b7a41d7b58dc2a00f0fc8419c62e162b3 on update-typescript-plugin into 97e33f2942023f8249d07889a8855997b885f931 on master.

coveralls avatar Oct 14 '20 12:10 coveralls

Will fix #560

Can you add this to commit log and also rebase b/c the latest master branch updated a bunch of other dependencies.

Otherwise LGTM so not sure why the subject says "WIP".

atodorov avatar Oct 16 '20 08:10 atodorov

Ok, have done the changes. I included WIP in the title because there are a lot of other error down the line. I removed the IE fix but I cannot check if it is used because IE11 is still not working ( #445 ). The problems are typescript errors, every usage of options is using the configuration type but it also has other types. https://github.com/lukasoppermann/html5sortable/blob/a19d77834cf63eccb8d1fba12b6cb27f6be1d464/src/html5sortable.ts#L230-L237 So I could add a <configuration> before every usage of options but I don't think this is the best solution. I haven't found out when the object string or undefined type on options is used, so we could maybe remove them and write: options: configuration

kaffarell avatar Oct 16 '20 09:10 kaffarell

All the errors look like this:

semantic error TS2339: Property 'items' does not exist on type 'string | void | configuration | HTMLElement'.
  Property 'items' does not exist on type 'string'.

kaffarell avatar Oct 16 '20 09:10 kaffarell

Hey @kaffarell please verify what I am saying, but I think you could cast options to here: https://github.com/lukasoppermann/html5sortable/blob/a19d77834cf63eccb8d1fba12b6cb27f6be1d464/src/html5sortable.ts#L267 because at this point it will always be a configuration, correct?

Otherwise we would probably need to add a function that deals with the options parameter and returns a configuration, but try the above mentioned first please.

lukasoppermann avatar Oct 21 '20 09:10 lukasoppermann

@kaffarell any news so this can be made mergable?

lukasoppermann avatar Nov 18 '20 12:11 lukasoppermann