Download wp-calypso/client/landing/stepper/utils/steps-with-required-login.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/utils/steps-with-required-login.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/utils/steps-with-required-login.ts
-
curl -L -o steps-with-required-login.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/utils/steps-with-required-login.ts
466 Bytes
| import { stepWithRequiredLogin } from './step-with-required-login'; | |
| import type { StepperStep } from 'calypso/landing/stepper/declarative-flow/internals/types'; | |
| export function stepsWithRequiredLogin< T extends StepperStep[] >( steps: T ): T { | |
| // Trick TS to believe the same array is returned without any changes. | |
| // This is needed to convince TS that steps and their order haven't actually changed. | |
| return steps.map( stepWithRequiredLogin ) as unknown as T; | |
| } | |