File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { CID } from '../cid.js'
10
10
* a `Data` type parameter indicating the type of encoded data.
11
11
*
12
12
* For example, a `ByteView<{ hello: "world" }>` is a `Uint8Array` containing a
13
- * binary representation of a `{hello: "world"}.
13
+ * binary representation of a `{hello: "world"}` .
14
14
*/
15
15
export interface ByteView < Data > extends Uint8Array , Phantom < Data > { }
16
16
@@ -22,16 +22,16 @@ declare const Marker: unique symbol
22
22
*
23
23
* Capturing unused type parameters allows us to define "nominal types," which
24
24
* TypeScript does not natively support. Nominal types in turn allow us to capture
25
- * semantics not represented in the actual type structure, without requring us to define
25
+ * semantics not represented in the actual type structure, without requiring us to define
26
26
* new classes or pay additional runtime costs.
27
27
*
28
28
* For a concrete example, see {@link ByteView}, which extends the `Uint8Array` type to capture
29
29
* type information about the structure of the data encoded into the array.
30
30
*/
31
31
export interface Phantom < T > {
32
- // This field can not be represented because field name is nonexistent
32
+ // This field can not be represented because field name is non-existent
33
33
// unique symbol. But given that field is optional any object will valid
34
- // type contstraint .
34
+ // type constraint .
35
35
[ Marker ] ?: T
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ export class CID {
226
226
* a `CID` otherwise returns `null`. If `value` is instanceof `CID`
227
227
* it will return value back. If `value` is not instance of this CID
228
228
* class, but is compatible CID it will return new instance of this
229
- * `CID` class. Otherwise returs null.
229
+ * `CID` class. Otherwise returns null.
230
230
*
231
231
* This allows two different incompatible versions of CID library to
232
232
* co-exist and interop as long as binary interface is compatible.
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export const equals = (a, b) => {
66
66
67
67
/**
68
68
* Represents a multihash digest which carries information about the
69
- * hashing alogrithm and an actual hash digest.
69
+ * hashing algorithm and an actual hash digest.
70
70
*
71
71
* @template {number} Code
72
72
* @template {number} Size
You can’t perform that action at this time.
0 commit comments