Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightapis/arrive-type
A generic version of @types/arrive.
https://github.com/lightapis/arrive-type
arrive type types
Last synced: 6 days ago
JSON representation
A generic version of @types/arrive.
- Host: GitHub
- URL: https://github.com/lightapis/arrive-type
- Owner: LightAPIs
- License: mit
- Created: 2023-10-15T08:39:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-02T07:16:09.000Z (about 1 month ago)
- Last Synced: 2024-12-02T07:35:18.765Z (about 1 month ago)
- Topics: arrive, type, types
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@dragonish/arrive-type
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arrive-type
generic type library of `arrive` package.
## Installation
```shell
npm install arrive
npm install @dragonish/arrive-type -D
```## Configuration
Add to the `tsconfig.json` file:
```json
{
"compilerOptions": {
"typeRoots": [
"./node_modules/@types",
"./node_modules/@dragonish"
]
}
}
```## Usage
```typescript
document.arrive('img', img => {
const src = img.src;
// ...
});
```Async/await and promise support:
```typescript
const img = await document.arrive('img');
const src = img.src;
// ...
```## Credits
- [uzairfarooq/arrive](https://github.com/uzairfarooq/arrive)
- [DefinitelyTyped/DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped)## License
[MIT](./LICENSE)