Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sobolevn/vue-flow-typed
Flow type definitions for Vue and family
https://github.com/sobolevn/vue-flow-typed
flow flow-typed flowtype type-safety vue vuex
Last synced: 1 day ago
JSON representation
Flow type definitions for Vue and family
- Host: GitHub
- URL: https://github.com/sobolevn/vue-flow-typed
- Owner: sobolevn
- License: mit
- Created: 2018-05-01T12:28:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T13:18:26.000Z (about 5 years ago)
- Last Synced: 2024-09-10T16:07:24.872Z (23 days ago)
- Topics: flow, flow-typed, flowtype, type-safety, vue, vuex
- Language: JavaScript
- Homepage: https://www.npmjs.com/org/vue-flow-typed
- Size: 85 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# vue-flow-typed
[![Build Status](https://travis-ci.org/sobolevn/vue-flow-typed.svg?branch=master)](https://travis-ci.org/sobolevn/vue-flow-typed)
[`flow`](https://github.com/facebook/flow/) typings for `Vue` packages.
## Packages
- [`vuex`](https://vuex.vuejs.org/en/) - full support via [`@vue-flow-typed/vuex`](https://github.com/sobolevn/vue-flow-typed/tree/master/packages/vuex)
- [`vue-router`](https://router.vuejs.org/) - full support via [`@vue-flow-typed/vue-router`](https://github.com/sobolevn/vue-flow-typed/tree/master/packages/vue-router)## Installation
You need to install every package independently.
They are all published under [`@vue-flow-typed` organization](https://www.npmjs.com/org/vue-flow-typed).Check out [this project template](https://github.com/wemake-services/wemake-vue-template) if you don't know how to start.
## Known problems
There are some problems we can not fix for now:
1. `flow` does not allow to [extend existing library](https://github.com/facebook/flow/issues/396) definitions. So we can not extend `Vue` instances to have `$store` when `vuex` is installed
2. `flow` does not allow to [annotate `this`](https://github.com/facebook/flow/issues/452). So, we can not specify some types for some `Vue` internals, like `$nextTick` and others
3. This typing are not yet good enough to be submitted to [`flow-typed`](https://github.com/flowtype/flow-typed). However, we will do it one daySee [issues](https://github.com/sobolevn/vue-flow-typed/issues)
for other known problems.## Contributing
Please, read [`CONTRIBUTING.md`](/CONTRIBUTING.md) before starting.
## License
MIT.