Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Evans mrbrianevans

View GitHub Profile
@mrbrianevans
mrbrianevans / GenerateTypescriptDefs.groovy
Created Jul 31, 2021
A groovy script to generate typescript definitions in Jetbrains IDE's. Put this file in your \JetBrains\{ProductName}\extensions\com.intellij.database\schema directory, and right click a database table > scripted extensions to use it
View GenerateTypescriptDefs.groovy
import com.intellij.database.model.DasTable
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper
*/