background
When writing code, we often mock to make sure that the function we have written doesn’t perform as expected. However, complex type filling data can become tedious, so I wrote a vscode plug-in to generate mock data.
Look at the effect
Supports mock generation by selecting a class or interface structure
Support curly braces for parameter generation mock
Supports mock generation by selecting class type names
The installation
Install the mock typescript plugin for VScode search
Current supported functions
type
- class
- interface
attribute
- boolean
- number
- string
- class
- array
- interface
- tuple
Follow-up Add function
- Multifile dependency resolution
- Type Type support
- Pure {} type declarations are supported
- Enum support
- The complex type
, etc.