Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Types
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jul 7, 2022
1 parent c657a99 commit a0dfb45
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
1 change: 0 additions & 1 deletion interface/windows/tools.svelte

This file was deleted.

23 changes: 23 additions & 0 deletions libraries/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* eslint-disable no-unused-vars */

declare global {
/** Query selector element types */
interface Element {
/** Element styles */
style: CSSStyleDeclaration
}

/** HTML dialog element types */
interface LibDialogElement extends Element {
/** Show the dialog as a modal */
showModal: Function

/* Close the modal */
close: Function

/** Property if dialog open */
open: boolean
}
}

export {}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"checkJs": true,
"isolatedModules": true
},
"include": ["interface/**/*.d.ts", "interface/**/*.ts", "interface/**/*.js", "interface/**/*.svelte", "interface/vite.config.js", "interface/svelte.config.js"],
"include": ["interface/**/*.d.ts", "interface/**/*.ts", "interface/**/*.js", "interface/**/*.svelte", "libraries/**/*.d.ts"],
"exclude": ["dist", "interface/svelte.config.js", "interface/vite.config.js"]
}

0 comments on commit a0dfb45

Please sign in to comment.