more refactoring

This commit is contained in:
jacob
2024-05-01 18:24:56 -05:00
parent 0488f45677
commit 219eda9bf7
7 changed files with 8 additions and 12 deletions

View File

@@ -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';

View File

@@ -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.