Skip to content

Commit

Permalink
fix: export types
Browse files Browse the repository at this point in the history
  • Loading branch information
themojilla authored and themojilla committed Sep 16, 2021
1 parent b08aee6 commit 19e66e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build:ts": "vite build && tsc --emitDeclarationOnly && mv dist/src dist/types",
"build": "vite build && tsc --emitDeclarationOnly && mv dist/src dist/types",
"serve": "vite preview",
"prepare": "husky install"
},
Expand Down
4 changes: 2 additions & 2 deletions src/types.d.ts → src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { Ref } from 'vue';

type Descendant = {
export type Descendant = {
id?: string;
element?: HTMLElement;
};

type DescendantsContext = {
export type DescendantsContext = {
descendants: Ref<Descendant[]>;
register({ element: HTMLElement }): void;
};

0 comments on commit 19e66e9

Please sign in to comment.