Skip to content

takefumi-yoshii/vuex-definitions-mapper

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

vuex-definitions-mapper

Auto TypeScript type definitions mapper for Vuex. This codegenerator suit for Vuex inference, and TypeScript Compiler API practice example.

Usage

$ yarn install
$ yarn dev 

Then start watch store directory. This process will teach directory info to ts.createProgram. The ts.Program parse TypeScript AST, and create meta type definitions by Node.js.

What will happen

Try to change type.ts files definitions in store. S, G, M, A Type decrarations will be procced and emit optimal type mapping to types/vuex/impl.ts.

There will be shown perfectory type inference in Module definitions.

CAUTION!: This example is prototyping.

About

Auto TypeScript type definitions mapper for Vuex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published