Greasy Fork 支持简体中文。

Yapi2Typescript

yapi接口定义转typescript

  1. // ==UserScript==
  2. // @name Yapi2Typescript
  3. // @namespace https://github.com/codeshareman/tookit.git
  4. // @version 0.11
  5. // @description yapi接口定义转typescript
  6. // @author codeshareman
  7. // @match *://*/*
  8. // @run-at document-start
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. "use strict";
  14. window.onload = () => {
  15. const ORIGIN = location.origin || "http://172.18.192.19:8989";
  16. const API_INTERFACE_ADDRESS = `${ORIGIN}/api/interface/get`;
  17. console.log("%c⧭", "color: #ff0000", 222);
  18. };
  19. })();