Reverse Engineer JavaScript to TypeScript with AI
From Wikiprompt, the free prompt encyclopedia
Reverse Engineer JavaScript to TypeScript with AI A prompt to convert obfuscated JavaScript code into well-typed TypeScript with comments, focusing on prompt construction and request handling.
Prompt ContentSave
🌐
下面是一段混淆后的 JavaScript 代码,请先阅读代码,然后将根据用户操作拼接 Prompt,并发送请求处理返回结果的相关代码还原成类型定义完整的 TypeScript 代码,要求: - 命名友好,类型完整,不要使用 any 类型 - 加上适当的中文注释 - 下面代码中引用了一些外部方法,不需要生成这些外部方法,只需要注释中注明即可
以下是完整代码,请生成拼接 Prompt和发送请求的TypeScript代码:
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: coding Prompts
- Source: https://x.com/dotey/status/1843414679298945160#prompt-1
Talk
0 comments