From 29bcab1639a0461d6895eae1823e80be3c537f3d Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Mon, 19 Dec 2022 17:14:26 -0500 Subject: [PATCH] style: whitespace fixes --- src/Complex/type.ts | 4 ++-- src/core/Dispatcher.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Complex/type.ts b/src/Complex/type.ts index 0d5af74..4e9704c 100644 --- a/src/Complex/type.ts +++ b/src/Complex/type.ts @@ -8,10 +8,10 @@ export const Complex_type = { (z: unknown): z is Complex => typeof z === 'object' && 're' in z && 'im' in z && dep.testT(z.re) && dep.testT(z.im), - infer: (dep: typeOfDependency) => + infer: (dep: typeOfDependency) => (z: Complex) => joinTypes(dep.typeOf(z.re), dep.typeOf(z.im)), from: { - T: (dep: Dependency<'zero', [T]>) => (t: T) => + T: (dep: Dependency<'zero', [T]>) => (t: T) => ({re: t, im: dep.zero(t)}), Complex: (dep: {convert: (from: U) => T}) => (z: Complex) => ({re: dep.convert(z.re), im: dep.convert(z.im)}) diff --git a/src/core/Dispatcher.ts b/src/core/Dispatcher.ts index 1d13108..4b3dfa6 100644 --- a/src/core/Dispatcher.ts +++ b/src/core/Dispatcher.ts @@ -37,7 +37,7 @@ type DependencyTypes = ? FinalShape : never : never} - + export type Dependency = {[N in Name]: DependencyTypes[keyof ImplementationTypes]}