refactor: remove unneeded signatures and fix imports

This commit is contained in:
Jacob Nguyen
2023-05-06 01:16:53 -05:00
parent 1fea6fa136
commit 1e1398fade
16 changed files with 44 additions and 148 deletions

View File

@@ -3,12 +3,12 @@ import { type Result, Err, Ok } from 'ts-results-es';
import { Processed } from '../types/core';
import { Module } from '../types/module';
import * as assert from 'node:assert'
import * as util from 'node:util'
import util from 'node:util'
import { type Observable, from, mergeMap, ObservableInput } from 'rxjs';
import { readdir, stat } from 'fs/promises';
import { basename, join, resolve } from 'path';
type ModuleResult<T> = Promise<Result<Processed<T>, SernError>>
export type ModuleResult<T> = Promise<Result<Processed<T>, SernError>>
export type Loader<T> = (absPath: string) => ModuleResult<T>
export async function defaultModuleLoader<T extends Module>(