本文整理汇总了TypeScript中lodash.over函数的典型用法代码示例。如果您正苦于以下问题:TypeScript over函数的具体用法?TypeScript over怎么用?TypeScript over使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了over函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: return
return ((options: Definition.IRequest) => {
const requests = _.over(callbacks)(options);
return Observable.from(requests)
.mergeMap(_.identity)
.scan((acc, value) => { acc.push(...value); return acc; }, [])
.debounceTime(200);
});
示例2: return
return (options: Rename.IRequest) => {
return Observable.from(_.over(callbacks)(options))
.mergeMap(_.identity)
.reduce(
(acc, results) => {
return acc.concat(results);
},
[]);
};
示例3: return
return (options: Atom.TextEditor) => {
return Observable.from(_.over(callbacks)(options))
.mergeMap(_.identity)
.scan(
(acc, results) => {
_.each(results, result => {
result.filePath = atom.project.relativizePath(result.filePath)[1];
});
return acc.concat(results);
},
[]);
};
示例4: return
return (options: RunCodeAction.IRequest) => {
return Observable.from(_.over(callbacks)(options))
.mergeMap(_.identity)
.reduce((acc, results) => _.compact(acc.concat(results)), []);
};
示例5: return
return ((options: Navigate.IRequest) => {
const requests = _.over(callbacks)(options);
return Observable.from(requests)
.mergeMap(_.identity)
.take(1);
});