Skip to content

Commit a070b50

Browse files
committed
Correct type notation of msg
1 parent 43f9faf commit a070b50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/content/docs/message.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ msg`This is an image: ${{ type: 'image', data: { uri: '...' } }}`;
6666
```typescript
6767
function msg(
6868
strings: TemplateStringsArray,
69-
...values: (string | number | boolean | types.OutgoingSegment_ZodInput)[]
70-
): OutgoingSegment_ZodInput[];
69+
...values: (string | number | boolean | milky.OutgoingSegment_ZodInput)[]
70+
): milky.OutgoingSegment_ZodInput[];
7171
```
7272

7373
可以看出,在调用 `msg` 函数时,模板字符串中的文本会被传递给 `strings` 参数,而插值(如 `${content}`)会被传递给 `values` 参数。`msg` 函数会根据这些参数来构造一个消息段数组。

0 commit comments

Comments
 (0)