Closed kuuak closed 3 months ago
We could improve the typing In order to avoid to have to export/import typings for every block.
[x] In any *.d.ts file remove all import and export (if any import or export is in d.ts file, typescript can't auto load the types anymore) https://github.com/superhuit-agency/eca-vaud.ch/commit/f9130eddae2ada46f8059cb0f24696a6031145c5
import
export
[x] Improve the block typings: https://github.com/superhuit-agency/eca-vaud.ch/commit/d5bdbe7cd0555d24050ad73723fec72ef05149f6
[x] Fix tsconfig in wordpress folder to also auto load typings https://github.com/superhuit-agency/eca-vaud.ch/commit/6f41492ed5aafbb195e56376dcfee841765fa1d9
tsconfig
[x] Find a good way for typings to be correctly imported from wordpress folder into src folder (because I had to do this https://github.com/superhuit-agency/eca-vaud.ch/commit/9f5184bda9e985f6e6a5d2d1ecbaf787d64aa75f)
wordpress
src
[x] Add specific typing for Data & GraphQL for the data.ts file (e.g. https://github.com/superhuit-agency/eca-vaud.ch/blob/upgrade-stack/src/components/organisms/sections/SectionNews/typings.d.ts)
data.ts
We could improve the typing In order to avoid to have to export/import typings for every block.
[x] In any *.d.ts file remove all
import
andexport
(if any import or export is in d.ts file, typescript can't auto load the types anymore) https://github.com/superhuit-agency/eca-vaud.ch/commit/f9130eddae2ada46f8059cb0f24696a6031145c5[x] Improve the block typings: https://github.com/superhuit-agency/eca-vaud.ch/commit/d5bdbe7cd0555d24050ad73723fec72ef05149f6
[x] Fix
tsconfig
in wordpress folder to also auto load typings https://github.com/superhuit-agency/eca-vaud.ch/commit/6f41492ed5aafbb195e56376dcfee841765fa1d9[x] Find a good way for typings to be correctly imported from
wordpress
folder intosrc
folder (because I had to do this https://github.com/superhuit-agency/eca-vaud.ch/commit/9f5184bda9e985f6e6a5d2d1ecbaf787d64aa75f)[x] Add specific typing for Data & GraphQL for the
data.ts
file (e.g. https://github.com/superhuit-agency/eca-vaud.ch/blob/upgrade-stack/src/components/organisms/sections/SectionNews/typings.d.ts)