-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript module declaration is missing. #103
Comments
This maybe help: declare module 'vue-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;
theme: string;
previewMode: boolean;
timeformat: (value: any) => string
}
type JsonViewerType = JsonViewerProps & VNodeProps & AllowedComponentProps & ComponentCustomProps
const JsonViewer: Component<JsonViewerType>
export { JsonViewer }
const def: { install: (app: App) => void }
export default def
} |
I use vue-json-pretty instead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey
Typescript projects getting missing declaration for your module when importing it. You should add a declaration so we do not have to do it manually. Thank you!
Error:
The text was updated successfully, but these errors were encountered: