Skip to content

Commit

Permalink
chore: Export Hog interfaces (#22798)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Jun 7, 2024
1 parent d5ac5b5 commit 5bb54d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hogvm/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@posthog/hogvm",
"version": "1.0.7",
"version": "1.0.9",
"description": "PostHog HogQL Virtual Machine",
"types": "dist/execute.d.ts",
"main": "dist/execute.js",
Expand Down
6 changes: 3 additions & 3 deletions hogvm/typescript/src/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function setNestedValue(obj: any, chain: any[], value: any): void {
}
}

interface VMState {
export interface VMState {
/** Bytecode running in the VM */
bytecode: any[]
/** Stack of the VM */
Expand All @@ -70,15 +70,15 @@ interface VMState {
syncDuration: number
}

interface ExecOptions {
export interface ExecOptions {
fields?: Record<string, any>
functions?: Record<string, (...args: any[]) => any>
asyncFunctions?: Record<string, (...args: any[]) => Promise<any>>
timeout?: number
maxAsyncSteps?: number
}

interface ExecResult {
export interface ExecResult {
result: any
finished: boolean
asyncFunctionName?: string
Expand Down

0 comments on commit 5bb54d8

Please sign in to comment.