Skip to content

Commit

Permalink
Merge pull request #1 from lming/fix-type-typo
Browse files Browse the repository at this point in the history
Fix getReference return type from boolean to any
  • Loading branch information
slince authored Dec 16, 2023
2 parents 2d427de + 1d8fa77 commit 2ee9a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface Runtime {
hasReference(property: string): boolean;
getReference(property: string): boolean;
getReference(property: string): any;
setReference(property: string, value: any): void;
}

Expand All @@ -19,7 +19,7 @@ export class GenericRuntime implements Runtime{
return this.context.has(property)
}

getReference(property: string): boolean{
getReference(property: string): any{
return this.context.get(property);
}

Expand Down

0 comments on commit 2ee9a78

Please sign in to comment.