Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tytydraco/zeppos-device-types-v1
Fixed API v1.0.0 declarations for @zepp/device-types.
https://github.com/tytydraco/zeppos-device-types-v1
Last synced: 3 months ago
JSON representation
Fixed API v1.0.0 declarations for @zepp/device-types.
- Host: GitHub
- URL: https://github.com/tytydraco/zeppos-device-types-v1
- Owner: tytydraco
- License: bsd-2-clause
- Created: 2022-12-08T21:48:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T22:49:33.000Z (almost 2 years ago)
- Last Synced: 2024-07-07T16:42:13.671Z (4 months ago)
- Size: 29.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zeppos - zeppos-device-types-v1 - Third part typings lib. (Libraries / Lib)
README
# zeppos-device-types-v1
Fixed API v1.0.0 declarations for @zepp/device-types.# How to use
To use this library instead of the official one, make the following changes:1. Uninstall the original library: `npm uninstall device-types`
2. Install this library: `npm install --save-dev zeppos-device-types-v1`
3. Include the declaration files globally (see below)## Declaration files
Since we are only provided with the `*.d.ts` files, `zeus` won't be able to compile them if we `import` this library. Instead, we need to do one of two things:* If you have a JavaScript project, add this to `global.d.ts` in the root of the project:
`/// `
* If you have a TypeScript project, add this to the `typeRoots` field of `tsconfig.json`:
```json
"typeRoots": [
"./node_modules/zeppos-device-types-v1"
]
```