.d.ts
file for the entirety of Dataview
#1486
mProjectsCode
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
been looking for this, thank you ❤️ does it also work with a |
Beta Was this translation helpful? Give feedback.
1 reply
-
the types as a gist for people that don't want to download the file https://gist.github.com/airtonix/5deec296bad0227ffc24be588b2da18a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I generated a
.d.ts
file for the entirety of Dataview, for anyone that wants type declarations for writing dataviewjs queries in their favorite IDE.This will show errors when viewing the file in your IDE, since it is missing types from dependencies, but that is no big deal.
To use this, create a typescript file in the same folder as the
.d.ts
file and add these two lines to the top of your typescript file:Then write your query below. Once you are finished writing your query, copy everything except the first two lines into a detaviewjs
The file is uploaded as
.txt
, because GitHub wouldn't let me upload it as a.d.ts
file. Just change the file extension to.d.ts
after downloading.dataview_types.txt
Beta Was this translation helpful? Give feedback.
All reactions