stable

Clone or download

Read-only

chore: REST API types for Selectbox field structure

No functional change. Typechecking should not raise errors. I chose to duplicate the big field structure union type in docgen-docx lib so that we can restrict field types to only what is needed. Reusing is good, unless it forces us to do a bunch of extra work every time there is an update. To prevent this, we redefine types by picking only the handful of attributes that are actually needed for docgen-docx. That way, this lib stays as it is, and we are free to add more details to the REST API types. part of: request #22648 Convert AngularJS directives and controllers to hybrids web components Change-Id: Ic7499e1aaf3fd6b9adcb6a6e91b443cc978c1c59

Modified Files

Name
M plugins/document_generation/scripts/lib/docx/src/Artifact/artifacts-structure-retriever.test.ts +2 −11 Go to diff View file
M plugins/document_generation/scripts/lib/docx/src/type.ts +20 −3 Go to diff View file
A plugins/tracker/scripts/lib/rest-api-types/src/file-field.ts +24 −0 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/list-field.ts +68 −4 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/open-list-field.ts +4 −0 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/trackers.ts +8 −7 Go to diff View file