Aurélien Richez 5 年之前
父節點
當前提交
7e53905cf6
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 5 5
      src/Sink.ts
  2. 1 1
      src/Source.ts

+ 5 - 5
src/Sink.ts

@@ -7,7 +7,7 @@ export type Done = typeof Done
 
 export interface Sink<T, Mat> {
   builder: SinkBuilder<Mat>
-  __phanthom__: T
+  __phantom__: T
 }
 
 interface SinkBuilder<M> {
@@ -27,7 +27,7 @@ export const sum: Sink<number, number> = {
       }).on('finish', () => out(result))
     },
   },
-  __phanthom__: Phantom(),
+  __phantom__: Phantom(),
 }
 
 export const ignore: Sink<any, Done> = {
@@ -41,7 +41,7 @@ export const ignore: Sink<any, Done> = {
       }).on('finish', () => out(Done))
     },
   },
-  __phanthom__: Phantom(),
+  __phantom__: Phantom(),
 }
 
 export function reduce<V, Mat>(reduceFn: (acc: Mat, v: V) => Mat, zero: Mat): Sink<V, Mat> {
@@ -58,7 +58,7 @@ export function reduce<V, Mat>(reduceFn: (acc: Mat, v: V) => Mat, zero: Mat): Si
         }).on('finish', () => out(acc))
       },
     },
-    __phanthom__: Phantom(),
+    __phantom__: Phantom(),
   }
 }
 
@@ -75,6 +75,6 @@ export function forEach<T>(fn: (t: T) => void): Sink<T, Done> {
         }).on('finish', () => out(Done))
       },
     },
-    __phanthom__: Phantom(),
+    __phantom__: Phantom(),
   }
 }

+ 1 - 1
src/Source.ts

@@ -5,7 +5,7 @@ import * as assert from 'assert'
 import { Sink } from './Sink'
 
 export class Source<T> {
-  private __phanthom__!: T
+  private __phantom__!: T
 
   private constructor(private builder: SourceBuilder<T>) {}