Skip to content

Commit da6a7f9

Browse files
committed
fix(posthog): type the delete feature flag result as a tool response
1 parent 048c067 commit da6a7f9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎apps/sim/tools/posthog/delete_feature_flag.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getPostHogAppBaseUrl } from '@/tools/posthog/utils'
2-
import type { ToolConfig } from '@/tools/types'
2+
import type { ToolConfig, ToolResponse } from '@/tools/types'
33

44
interface DeleteFeatureFlagParams {
55
projectId: string
@@ -9,9 +9,11 @@ interface DeleteFeatureFlagParams {
99
apiKey: string
1010
}
1111

12-
interface DeleteFeatureFlagResponse {
13-
success: boolean
14-
message: string
12+
interface DeleteFeatureFlagResponse extends ToolResponse {
13+
output: {
14+
success: boolean
15+
message: string
16+
}
1517
}
1618

1719
export const deleteFeatureFlagTool: ToolConfig<DeleteFeatureFlagParams, DeleteFeatureFlagResponse> =

0 commit comments

Comments
 (0)