
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
wps-airscript-types
Advanced tools
WPS Airscript TypeScript类型定义。以便在IDE中可以使用代码提示。
非官方项目,但是从金山文档网页中的源代码解析生成,使用方法与官方文档一致。
官方文档:AirScript文档
npm install wps-airscript-types
在你的项目根目录下新建airscript.d.ts文件,内容如下:
/// <reference path="./node_modules/wps-airscript-types/types/Context.d.ts" />
/// <reference path="./node_modules/wps-airscript-types/types/ApiV1.d.ts" />
如果你需要使用V2版本的API,只需要将ApiV1.d.ts替换为ApiV2.d.ts即可。
配置tsconfig.json文件,添加include值:
{
"include": ["airscript.d.ts"],
}
然后就可以在代码中使用类型声明和代码提示了。

如图,以多维表为例。
468.70fb31cf.js,随着wps的更新,文件名可能会变,需要自己逐个排查。source.txt中。npm run build,即可在types文件夹下生成v1和v2版本的类型定义,可将其复制到自己的项目中。FAQs
WPS AirScript Api TypeScript类型申明, 包含v1.0和v2.0
We found that wps-airscript-types demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.