mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
chore: add clearer type defs
This commit is contained in:
parent
5b6c14fa94
commit
01ebc4917c
@ -254,7 +254,10 @@ describe('Playground API E2E', () => {
|
|||||||
const mappedToggles = createDict(body.features);
|
const mappedToggles = createDict(body.features);
|
||||||
|
|
||||||
if (features.length !== body.features.length) {
|
if (features.length !== body.features.length) {
|
||||||
const [longer, shorter] =
|
const [longer, shorter]: [
|
||||||
|
ClientFeatureSchema[],
|
||||||
|
ClientFeatureSchema[],
|
||||||
|
] =
|
||||||
features.length > body.features.length
|
features.length > body.features.length
|
||||||
? [features, body.features]
|
? [features, body.features]
|
||||||
: [body.features, features];
|
: [body.features, features];
|
||||||
|
Loading…
Reference in New Issue
Block a user