Skip to content

current

查询当前台风位置及预测值。

调用方式:

typescript
const data = await client.typhoon.current(params);
typescript
import { Typhoon } from 'loongship-data';

const data = await Typhoon.current({ key: 'YOUR_KEY', ...params });

请求参数 (TyphoonCurrentParams)

参数名类型必填描述
typenumber类型,固定值 2。
nodetypestring节点数量控制,固定值 all。
keystringUser authorization key. Optional when an instance key or global key is registered.

返回类型: TyphoonCurrentData

查看类型定义
typescript
export type LoongshipRecord = Record<string, unknown>;