mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
refactor: builders can return non-observable output
This commit is contained in:
parent
5714f1853a
commit
0003adf757
@ -5,10 +5,9 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import { of } from 'rxjs';
|
||||
import { createBuilder } from '../src/index2';
|
||||
|
||||
export default createBuilder(() => of({
|
||||
export default createBuilder(() => ({
|
||||
success: false,
|
||||
error: 'False builder always errors.',
|
||||
}));
|
||||
|
@ -5,7 +5,6 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import { of } from 'rxjs';
|
||||
import { createBuilder } from '../src/index2';
|
||||
|
||||
export default createBuilder(() => of({ success: true }));
|
||||
export default createBuilder(() => ({ success: true }));
|
||||
|
Loading…
x
Reference in New Issue
Block a user