Papyrus-2-Typescript
⚪ Last updated 2021⚠️ Install Order · 5 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 👍 0.7% endorsement rate
- 🏆 #28 of 31 Modders Resources mods in this game by downloads
📋 About This Mod
Warning
This program and libraries aren't meant to be used by mod users, but modders only.
Please read the pinned comment for more info on that.
About
This program is meant to be used to transform SKSE definition libraries to Typescript for using them in Skyrim Platform, so you can use in Typescript all your SKSE libraries the same way you would be using them in Papyrus (here's a real life usage example of using JContainers conversion for an actually working plugin
This program's aim is not to automate whole language features translation, but only function headers.
If the .psc file contains actual code (think PapyrusUtil.psc) the function header will be converted, but the rest will be output verbatim, waiting for a human to come and fix it.
Usage
Drag and drop all your .psc files to the executable.
It will generate .ts files in the same folder as its input.
Using converted files
Put all your converted files inside some folder, then add that folder inside the folder where skyrimPlatform.ts is located.
Folders in this image look like shortcuts because they are actually symlinks (the same technology Vortex uses to manage your mods).
You don't need to use symlinks. You can just drop your folders there.
Once folders are where they are supposed to be, import modules from Typescript as usual.
import { on } from "skyrimPlatform"
import as JArray from "JContainers/JArray"
// Lines irrelevant to our illustration purposes were ommited.
on('update', () => {
const a = JArray.object()
JArray.addInt(a, 5)
const t: number = JArray.getInt(a, 0)
// This outputs `5`, indeed.
printConsole(`Array value: ${t}`)
I've added to my github project some converted files for libraries I use myself.
Grab them at the conversions folder.
BEWARE: Not all functions have been tested.
Remarks
This program has no way to know the intention of the humans that made the scripts, so it's always advisable to manually check all generated files to make sure everything is declared as it should.
Take note the program assumes generated scripts will be put in some subfolder to the folder where skyrimPlatform.ts is found, otherwise you'll get "Cannot find module..." type of errors when coding your plugin.
If you want to have your scripts in some other place, you can always just change the
Papyrus-2-Typescript is a modder's resource that converts Papyrus script headers (.psc) into TypeScript (.ts) files for use with Skyrim Platform. It simplifies the process of creating type definitions for Skyrim modding, making it easier to develop scripts in TypeScript. With 142 endorsements and nearly 20k downloads, it's a niche but useful tool for modders.
✨ Key Features
📊 Pros & Cons
✅ Pros
- Solid community trust with 142 endorsements and nearly 20k downloads.
- Streamlines the workflow for modders using Skyrim Platform.
- Fills a specific niche for TypeScript integration in Skyrim modding.
⚠️ Cons
- Last updated in 2021, so it may not support the latest Skyrim Platform versions.
- Requires familiarity with both Papyrus and TypeScript to fully utilize.
- Potential compatibility issues with newer modding tools or game updates.
For Skyrim modders who use Skyrim Platform and want to write scripts in TypeScript. It's a must-have if you're tired of manually converting Papyrus headers. Skip if you're a player looking for gameplay mods—this is purely a development tool.
💡 Beginner Tips
- Make sure you have Skyrim Platform installed and configured before using the generated .ts files.
- Use a code editor like VS Code with TypeScript support to get the best experience.
- Check the generated .ts files for any missing type definitions and manually add them if needed.
📊 Mod Details
- Game
- Skyrim Mods
- Author
- Carlos Leyva
- Version
- 0.1.2-beta
- Downloads
- 19,298
- Endorsements
- 142
- Category
- Modders Resources
- Created
- 10/11/2021
- Updated
- 11/22/2021
🔧 How to Install Skyrim Mods
Download from Nexus.
📖 Full step-by-step install guide for Skyrim →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Skyrim commands, item IDs, and more.
Keep browsing — more Skyrim mods await