Skip to content

Commit

Permalink
feat(types): auto-generated types using vue-tsc 🎉
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Oct 4, 2022
1 parent 8af63c8 commit 93fbaf4
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 19 deletions.
62 changes: 62 additions & 0 deletions types/components/VOffline.vue.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import type { PropType } from 'vue';
declare const _default: import('vue').DefineComponent<
{
onlineClass: {
type: PropType<string>;
required: false;
default: string;
};
offlineClass: {
type: PropType<string>;
required: false;
default: string;
};
pingUrl: {
type: PropType<string>;
required: false;
default: string;
};
},
() => import('vue').VNode<
import('vue').RendererNode,
import('vue').RendererElement,
{
[key: string]: any;
}
>,
unknown,
{},
{},
import('vue').ComponentOptionsMixin,
import('vue').ComponentOptionsMixin,
import('vue').EmitsOptions,
'detected-condition',
import('vue').VNodeProps &
import('vue').AllowedComponentProps &
import('vue').ComponentCustomProps,
Readonly<
import('vue').ExtractPropTypes<{
onlineClass: {
type: PropType<string>;
required: false;
default: string;
};
offlineClass: {
type: PropType<string>;
required: false;
default: string;
};
pingUrl: {
type: PropType<string>;
required: false;
default: string;
};
}>
>,
{
onlineClass: string;
offlineClass: string;
pingUrl: string;
}
>;
export default _default;
22 changes: 3 additions & 19 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
import type {
AllowedComponentProps,
ComponentCustomProps,
DefineComponent,
VNodeProps,
} from 'vue';

export interface VOfflineProps {
onlineClass?: string;
offlineClass?: string;
pingUrl?: string;
}

type VOfflineComponentProps = AllowedComponentProps &
ComponentCustomProps &
VNodeProps &
VOfflineProps;

export const VOffline: DefineComponent<VOfflineComponentProps>;
import VOffline from './components/VOffline.vue';
export { default } from './install';
export { VOffline };
3 changes: 3 additions & 0 deletions types/install.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { App as Application } from 'vue';
declare const install: (app: Application) => void;
export default install;

0 comments on commit 93fbaf4

Please sign in to comment.