Skip to content

Commit 229f2f7

Browse files
committed
fix: Type inference
1 parent b6baad7 commit 229f2f7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packages/bridge-stdlib/src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
* Separated from core so it can be versioned independently.
99
*/
10+
import type { ToolCallFn } from "@stackables/bridge-types";
1011
import { audit } from "./tools/audit.ts";
1112
import { createHttpCall } from "./tools/http-call.ts";
1213
import * as arrays from "./tools/arrays.ts";
@@ -28,12 +29,17 @@ export const STD_VERSION = "1.5.0";
2829
*/
2930
const httpCallFn = createHttpCall();
3031

31-
export const std = {
32+
export const std: {
33+
readonly str: typeof strings;
34+
readonly arr: typeof arrays;
35+
readonly audit: typeof audit;
36+
readonly httpCall: ToolCallFn;
37+
} = {
3238
str: strings,
3339
arr: arrays,
3440
audit,
3541
httpCall: httpCallFn,
36-
} as const;
42+
};
3743

3844
/**
3945
* All known built-in tool names as "namespace.tool" strings.

0 commit comments

Comments
 (0)