yarn webpack
μ€νμ λ€μ μ€λ₯κ° νμλ©λλ€.
tsl] ERROR in /srv/pim/web/bundles/pimdatagrid/js/datafilter/filters-column.ts(285,5)
TS2322: Type 'JQuery<Element>' is not assignable to type 'JQuery<HTMLElement>'.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 109 more.
μ΄ μμ±μ²λΌ 보μ λλ€.
public filterList: JQuery<HTMLElement>;
JQuery<Element>
λ‘ μ
λ ₯ν΄μΌν©λλ€.
akeneo 3.2λ₯Ό μ€μΉν λ λμΌν λ¬Έμ κ° μμ΅λλ€.
μ΄κ²μ μΌμμ μΈ μμ μΌλΏμ λλ€.
μμ μμ μ λ€μ νμΌμ μ½λ λ€.
web / bundles / pimdatagrid / js / datafilter / filters-column.ts
λ€μμμ ~ 25 νμ λ³κ²½νμμμ€.
public filterList: JQuery<HTMLElement>;
μ΄μ:
public filterList: JQuery<Element>;
κ·Έλ° λ€μ μ€ννμμμ€.
yarn run webpack
v3.2.46κ³Ό λμΌν λ¬Έμ
v3.2.51κ³Ό λμΌν λ¬Έμ
ERROR in /srv/pim/web/bundles/pimdatagrid/js/datafilter/filters-column.ts
./web/bundles/pimdatagrid/js/datafilter/filters-column.ts
[tsl] ERROR in /srv/pim/web/bundles/pimdatagrid/js/datafilter/filters-column.ts(289,5)
TS2322: Type 'JQuery<Element>' is not assignable to type 'JQuery<HTMLElement>'.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 109 more.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
μλ νμΈμ @robingchan ,
μ°λ¦¬λ κ·Έκ²μ κ³ μΉ μ μμ§λ§ μ€ν μμ€μ΄κΈ° λλ¬Έμ PRλ λ§€μ° νμλ°μ κ²μ λλ€. : wink :
JQuery.find μλͺ μ΄ λ°©κΈ λ³κ²½λμμ΅λλ€.
νΈμ§ : @types κ΄λ ¨ PR : https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44051
μ’μ μΊμΉ μΏ μν΄.
μλͺ»λ μμ§μ Jquery : facepalm :
3.2μ λ³ν©λμ΄ λ€μ v3.2.52 νκ·Έμμ μ¬μ©ν μ μμ΅λλ€.
μκ°μλ΄μ΄ λ¬Έμ λ₯Όλ³΄κ³ ν΄ μ£Όμ μ κ°μ¬ν©λλ€.
κ°μ₯ μ μ©ν λκΈ
μκ°μλ΄μ΄ λ¬Έμ λ₯Όλ³΄κ³ ν΄ μ£Όμ μ κ°μ¬ν©λλ€.