Skip to content

Commit

Permalink
Remove Readonly modifier since DocumentNode is already readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 7, 2023
1 parent a5a9213 commit ed81e55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cache/inmemory/documentTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class DocumentTransformer {
return this;
}

public transform(document: Readonly<DocumentNode>): DocumentNode {
public transform(document: DocumentNode): DocumentNode {
return this.transforms.reduce((document, transform) => {
return transform(document);
}, document);
Expand Down
2 changes: 1 addition & 1 deletion src/cache/inmemory/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ export interface ReadMergeModifyContext {
varString?: string;
}

export type DocumentTransform = (document: Readonly<DocumentNode>) => DocumentNode
export type DocumentTransform = (document: DocumentNode) => DocumentNode

0 comments on commit ed81e55

Please sign in to comment.