mirror of
https://github.com/sern-handler/handler
synced 2026-06-21 23:32:14 +00:00
more refactoring
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import type { Result } from 'ts-results-es'
|
||||
|
||||
export * as Id from './id';
|
||||
export * from './operators';
|
||||
export * as Files from './module-loading';
|
||||
export * from './functions';
|
||||
export { SernError } from './structures/enums';
|
||||
export { useContainerRaw } from './ioc/base';
|
||||
|
||||
@@ -45,7 +45,8 @@ export function callPlugin(args: unknown): OperatorFunction<PluginExecutable, Vo
|
||||
});
|
||||
}
|
||||
|
||||
export const arrayifySource = <T>(src: T) => (Array.isArray(src) ? (src as unknown[]) : [src]);
|
||||
export const arrayifySource = <T>(src: T) =>
|
||||
Array.isArray(src) ? src : [src];
|
||||
|
||||
/**
|
||||
* Checks if the stream of results is all ok.
|
||||
|
||||
Reference in New Issue
Block a user