@types/vue3-json-viewer
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

Installation

npm install --save @types/vue3-json-viewer

Summary

This package contains type definitions for vue3-json-viewer (https://github.com/qiuquanwu/vue3-json-viewer).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue3-json-viewer.

import { AllowedComponentProps, App, Component, ComponentCustomProps, VNodeProps } from "vue";

interface JsonViewerProps {
    value: object | Array<any> | string | number | boolean; // 对象
    expanded: boolean; // 是否自动展开
    expandDepth: number; // 展开层级
    copyable: boolean | object; // 是否可复制
    sort: boolean; // 是否排序
    boxed: boolean; // 是否boxed
    theme: string; // 主题 jv-dark | jv-light
    previewMode: boolean; // 是否可复制
    timeformat: (value: any) => string;
}

type JsonViewerType = JsonViewerProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;

declare const JsonViewer: Component<JsonViewerType>;
export { JsonViewer };

declare const def: { install: (app: App) => void };
export default def;

Additional Details

  • Last updated: Thu, 19 Dec 2024 00:47:09 GMT
  • Dependencies: vue

Credits

These definitions were written by String10.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/vue3-json-viewer

Weekly Downloads

1,829

Version

2.2.0

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • types