Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>dxyJsoncToTsNew to Visual Studio Code? Get it now.
dxyJsoncToTs

dxyJsoncToTs

yuguanghui

|
17 installs
| (0) | Free
Convert json data into TS declarations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

dxyjsonctots README

Convert json data into TS declarations

Introduce

The transformation JSONC implemented using Typeof - Jsonc is declared for TS

Usage

With selection:

  • Select a JSON fragment
  • Press Cmd+Shift+T
  • The output the corresponding TS declaration

Sippnets

Syntax Description
imrc import React, { Component } from 'react'
imrp import React, { PureComponent } from 'react'
imrh import React, { useState } from 'react'
imrhf import React, { FC } from 'react'
imrhi import react and add interface
con constructor
conc constructor(props,content)
cwm componentWillMount
cdm componentDidMount
cwr componentWillReceiveProps
cwup componentWillUpdate
cdup componentDidUpdate
cwun componentWillUnmount
cdc componentDidCatch
type typescript type
int typescript interface
exint export typescript interface
uss useState
use useEffect
usl useLayoutEffect
usm useMemo
useu useEffectUnMount
used useEffectDidMount
lod import lodash
cls import classnames
dav import dav
dui import dxm-ui
dui import dxm-ui
antdm import antd-mobile
antdm import antd-mobile
less import styles from './${name}.less'
@com import @/components
@comb import @/componentsBusiness
@uti import @/uti
@ser import @/services
@hook import @/hooks
@can import @/cantants
./ import {} from './'
../ import {} from '../'

To Do

  • Add support for Json formatting

Enjoy!

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