Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mock TypescriptNew to Visual Studio Code? Get it now.
Mock Typescript

Mock Typescript

mingji

|
2,234 installs
| (1) | Free
Generate mock data from interface class and type of typescript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mock Typescript

Generate mock data from classes and interfaces.

Features

Can generate mock json from typescript class and interface. currently only class and interface are supported. dependency types only supported in the current file

supproted properties

  • boolean
  • number
  • string
  • class
  • array
  • interface
  • tuple

Guide

  1. select the class or interface that you want to transform
  2. open editor context menu and click genMock
  3. ctrl+v paste

Basic

Copy parameters

Copy class

Release Notes

1.0.0

Generate mock json from typescript class and interface.

1.1.0

  • support tuple
  • friendly error message

Links

  • Repo
  • Issues

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft