refactor: builders can return non-observable output

This commit is contained in:
Hans Larsen 2019-03-05 14:51:06 -08:00 committed by Hans
parent 5714f1853a
commit 0003adf757
2 changed files with 2 additions and 4 deletions

View File

@ -5,10 +5,9 @@
* Use of this source code is governed by an MIT-style license that can be * 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 * found in the LICENSE file at https://angular.io/license
*/ */
import { of } from 'rxjs';
import { createBuilder } from '../src/index2'; import { createBuilder } from '../src/index2';
export default createBuilder(() => of({ export default createBuilder(() => ({
success: false, success: false,
error: 'False builder always errors.', error: 'False builder always errors.',
})); }));

View File

@ -5,7 +5,6 @@
* Use of this source code is governed by an MIT-style license that can be * 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 * found in the LICENSE file at https://angular.io/license
*/ */
import { of } from 'rxjs';
import { createBuilder } from '../src/index2'; import { createBuilder } from '../src/index2';
export default createBuilder(() => of({ success: true })); export default createBuilder(() => ({ success: true }));