Skip to content

Instantly share code, notes, and snippets.

@foxbunny
Last active September 14, 2017 13:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save foxbunny/c0fddf114c3d7ec64b7651900bf0e517 to your computer and use it in GitHub Desktop.
Save foxbunny/c0fddf114c3d7ec64b7651900bf0e517 to your computer and use it in GitHub Desktop.
JSX definition for Vue.js
// I'm not the original author of this code. Please let me
// know if you know/find the original author so I can fully
// attribute.
import Vue, { VNode } from "vue";
declare global {
namespace JSX {
interface Element extends VNode {}
interface ElementClass extends Vue {}
interface ElementAttributesProperty {
_propsBrand: {}
}
interface IntrinsicElements {
a: any,
abbr: any,
acronym: any,
address: any,
applet: any,
area: any,
article: any,
aside: any,
audio: any,
b: any,
base: any,
basefont: any,
bdi: any,
bdo: any,
bgsound: any,
big: any,
blink: any,
blockquote: any,
body: any,
br: any,
button: any,
canvas: any,
caption: any,
center: any,
cite: any,
code: any,
col: any,
colgroup: any,
command: any,
content: any,
data: any,
datalist: any,
dd: any,
del: any,
details: any,
dfn: any,
dialog: any,
dir: any,
div: any,
dl: any,
dt: any,
element: any,
em: any,
embed: any,
fieldset: any,
figcaption: any,
figure: any,
font: any,
footer: any,
form: any,
frame: any,
frameset: any,
h1: any,
h2: any,
h3: any,
h4: any,
h5: any,
h6: any,
head: any,
header: any,
hgroup: any,
hr: any,
html: any,
i: any,
iframe: any,
image: any,
img: any,
input: any,
ins: any,
isindex: any,
kbd: any,
keygen: any,
label: any,
legend: any,
li: any,
link: any,
listing: any,
main: any,
map: any,
mark: any,
marquee: any,
menu: any,
menuitem: any,
meta: any,
meter: any,
multicol: any,
nav: any,
nobr: any,
noembed: any,
noframes: any,
noscript: any,
object: any,
ol: any,
optgroup: any,
option: any,
output: any,
p: any,
param: any,
picture: any,
plaintext: any,
pre: any,
progress: any,
q: any,
rp: any,
rt: any,
rtc: any,
ruby: any,
s: any,
samp: any,
script: any,
section: any,
select: any,
shadow: any,
slot: any,
small: any,
source: any,
spacer: any,
span: any,
strike: any,
strong: any,
style: any,
sub: any,
summary: any,
sup: any,
table: any,
tbody: any,
td: any,
template: any,
textarea: any,
tfoot: any,
th: any,
thead: any,
time: any,
title: any,
tr: any,
track: any,
tt: any,
u: any,
ul: any,
var: any,
video: any,
wbr: any,
xmp: any,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment