Skip to content

Commit 8d7c4af

Browse files
Fixing McpTool isn't imported with type-only imports and fails for builds with verbatimModuleSyntax enabled (#381)
1 parent 1b80b2c commit 8d7c4af

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/functions",
3-
"version": "4.8.1",
3+
"version": "4.8.2",
44
"description": "Microsoft Azure Functions NodeJS Framework",
55
"keywords": [
66
"azure",

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
export const version = '4.8.1';
4+
export const version = '4.8.2';
55

66
export const returnBindingKey = '$return';

src/utils/toolProperties.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
import { Args, McpToolProperty } from '../../types/mcpTool';
4+
import type { Args } from '../../types/mcpTool';
5+
import { McpToolProperty } from '../../types/mcpTool';
56

67
/**
78
* Fluent API builder for creating MCP Tool properties

test/converters/toMcpToolTriggerOptionsToRpc.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import 'mocha';
55
import { expect } from 'chai';
66
import { converToMcpToolTriggerOptionsToRpc } from '../../src/converters/toMcpToolTriggerOptionsToRpc';
77
import { arg } from '../../src/utils/toolProperties';
8-
import { Args, McpToolProperty, McpToolTriggerOptions } from '../../types/mcpTool';
8+
import type { Args } from '../../types/mcpTool';
9+
import { McpToolProperty, McpToolTriggerOptions } from '../../types/mcpTool';
910

1011
describe('converToMcpToolTriggerOptionsToRpc', () => {
1112
describe('basic conversion', () => {

0 commit comments

Comments
 (0)