Skip to content

Instantly share code, notes, and snippets.

Avatar
🍕
OSS on my mind

Tylor Steinberger TylorS

🍕
OSS on my mind
View GitHub Profile
@TylorS
TylorS / HtmlProperties.ts
Created May 6, 2017
TypeScript typings for all DOM properties
View HtmlProperties.ts
// tslint:disable:max-file-line-count
export type NodeProperties =
{
nodeValue?: string | null;
textContent?: string | null;
};
export type ElementProperties = NodeProperties &
{
className?: string;