We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c66d6e commit a6ef778Copy full SHA for a6ef778
src/relativePointer.ts
@@ -271,7 +271,8 @@ export class JsonRelativePointer implements JsonConvertible {
271
return segment;
272
}
273
274
- return this.getRemainderPointer().get(value as T);
+ // Given V = typeof value, and typeof value ⊆ ReferencedValue<T> → ReferencedValue<K> ⊆ ReferencedValue<T>
275
+ return this.getRemainderPointer().get(value) as ReferencedValue<T>;
276
277
278
/**
0 commit comments