/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular_devkit/architect/node/test/jobs/add.ts
20 строк
539 B
Paul Gschwendtner
build: migrate `@angular-devkit/architect/node` tests to `rules_js`
21 янв 2025, 20:19
21 янв 2025, 20:19
397ea00
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { jobs } from '../../../index'; // Export the job using a createJob. We use our own spec file here to do the job. export default jobs.createJobHandler<number[], null, number>( (input) => { return input.reduce((a, c) => a + c, 0); }, { input: { items: { type: 'number' } }, output: { type: 'number' }, }, );