Skip to content

Commit a6ef778

Browse files
committed
Add comment
1 parent 1c66d6e commit a6ef778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/relativePointer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ export class JsonRelativePointer implements JsonConvertible {
271271
return segment;
272272
}
273273

274-
return this.getRemainderPointer().get(value as T);
274+
// Given V = typeof value, and typeof value ⊆ ReferencedValue<T> → ReferencedValue<K> ⊆ ReferencedValue<T>
275+
return this.getRemainderPointer().get(value) as ReferencedValue<T>;
275276
}
276277

277278
/**

0 commit comments

Comments
 (0)