1
0
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:
Thomas Heartman 2023-01-04 10:14:51 +01:00
parent 5b6c14fa94
commit 01ebc4917c
No known key found for this signature in database
GPG Key ID: 47CFBB2D87C87664

View File

@ -254,7 +254,10 @@ describe('Playground API E2E', () => {
const mappedToggles = createDict(body.features);
if (features.length !== body.features.length) {
const [longer, shorter] =
const [longer, shorter]: [
ClientFeatureSchema[],
ClientFeatureSchema[],
] =
features.length > body.features.length
? [features, body.features]
: [body.features, features];