0.2.1 • Published 12 months ago

@dragonish/arrive-type v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

arrive-type

generic type library of arrive package.

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;
  // ...
});

Async/await and promise support:

const img = await document.arrive<HTMLImageElement>('img');
const src = img.src;
// ...

Credits

License

MIT

0.2.1

12 months ago

0.2.0

12 months ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago