Skip to content

Commit

Permalink
Add RFC documentation as JSDoc comments, add error types
Browse files Browse the repository at this point in the history
  • Loading branch information
htunnicliff committed May 8, 2024
1 parent 6fe350e commit ea9beee
Show file tree
Hide file tree
Showing 3 changed files with 2,125 additions and 43 deletions.
8 changes: 6 additions & 2 deletions src/request-drafts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import type { ExcludeValue, IncludeValue } from "./helpers.ts";
import { LocalInvocation, Methods, Requests } from "./types/contracts.ts";
import type { Invocation, JSONPointer, ResultReference } from "./types/jmap.ts";
import type {
Invocation,
ExtendedJSONPointer,
ResultReference,
} from "./types/jmap.ts";

/**
* Symbol used to identify arguments that need to be transformed
Expand Down Expand Up @@ -35,7 +39,7 @@ export class InvocationDraft<I = unknown> {
* Create a result reference that points to the result
* of a previous invocation.
*/
$ref(path: JSONPointer): Ref<I> {
$ref(path: ExtendedJSONPointer): Ref<I> {
return {
[r]: {
path,
Expand Down
Loading

0 comments on commit ea9beee

Please sign in to comment.