Port BaseResource (and extra data helpers) to spina.
Review Request #13003 — Created May 3, 2023 and submitted
This change ports the
BaseResourceclass to spina and TypeScript. Along
with it comes theExtraDatamodel andExtraDataMixin.
- Ran js-tests.
- Went through and tested various bits of functionality on the site.
| Summary | ID |
|---|---|
| 65dd33ca309bb545121bdb593c6a87dbb58fa3c7 |
| Description | From | Last Updated |
|---|---|---|
|
Probably should be unknown instead of any. (any is a last-resort with no type checking, but unknown has some basic … |
|
|
|
Should probably be unknown. |
|
|
|
Here, too. |
|
|
|
Probably should use unknown, unless there are problems. Same below. |
|
|
|
This feels strangely wrapped. Can we pull this out into a variable and then check that result? |
|
|
|
We can document options as being SaveWithFilesOptions and remove the Option Args now. Same with others. |
|
|
|
Same comment as on another change: If we have unit tests include things relatively, we can more easily test without … |
|
-
-
Probably should be
unknowninstead ofany. (anyis a last-resort with no type checking, butunknownhas some basic type checking). -
-
-
-
-
We can document
optionsas beingSaveWithFilesOptionsand remove theOption Argsnow. Same with others. -
Same comment as on another change: If we have unit tests include things relatively, we can more easily test without needing things to live in
RB(which will happen during compilation), and we can eventually even treeshake the tests.
- Commits:
-
Summary ID f596bc50b057b5984481561766da38c686a7673b 65dd33ca309bb545121bdb593c6a87dbb58fa3c7 - Diff:
-
Revision 2 (+988 -512)