@dragonish/arrive-type
v0.1.3
Published
A generic version of @types/arrive
Downloads
27
Readme
arrive-type
A generic version of @types/arrive
.
Installation
npm install arrive
npm install @dragonish/arrive-type -D
Configuration
Add to the tsconfig.json
file:
{
"compilerOptions": {
"typeRoots": [
"./node_modules/@types",
"./node_modules/@dragonish"
]
}
}
Usage
document.arrive<HTMLImageElement>('img', img => {
const src = img.src;
// ...
});