written, then moved to "archive" as unneeded: commit:44120a8678105b495df5672ba9225a80b1d1affd
Strongly typed functional wrapper for a the ES2020 (ESM) standard import() expression allowing for dynamic importing (and bundler code-spitting) within ECMAScript/Typescript.
type R = number;
type P = { sum?: number[] };
const fn1 = Func.import<R, P>(async (e) => 💦 );
const fn2 = Func.import<R>(async (e) => 💦 );
const res = await fn1();
const res = await fn2({ sum: [1, 2, 3] }); // res equals 6
Changes:
Strongly Typed Function Loader
written, then moved to "archive" as unneeded:
commit:44120a8678105b495df5672ba9225a80b1d1affd
Strongly typed functional wrapper for a the ES2020 (ESM) standard
import()
expression allowing for dynamic importing (and bundler code-spitting) within ECMAScript/Typescript.