diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-24 19:12:13 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-24 19:12:13 +1000 |
| commit | bce4ab3facf63f70a0dd3cefa1f8c82453dba2d4 (patch) | |
| tree | ce156edd2ba0c5e07e264c003300cb30204dec66 /src/components/TileInfoModal.vue | |
| parent | 12a4c1fd39b12bda8d98d3a03ee3751c95b7a91c (diff) | |
Add type annotations for UI options
Diffstat (limited to 'src/components/TileInfoModal.vue')
| -rw-r--r-- | src/components/TileInfoModal.vue | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue index 83155ba..6fcb023 100644 --- a/src/components/TileInfoModal.vue +++ b/src/components/TileInfoModal.vue @@ -2,10 +2,8 @@ import {defineComponent, PropType} from 'vue'; import CloseIcon from './icon/CloseIcon.vue'; import Tile from './Tile.vue' -import {LayoutNode} from '../layout'; -import type {LayoutOptions} from '../layout'; -import type {TolMap} from '../lib'; -import {TolNode, DescInfo, ImgInfo, TileInfoResponse} from '../lib'; +import {LayoutNode, LayoutOptions} from '../layout'; +import {TolNode, TolMap, UiOptions, DescInfo, ImgInfo, TileInfoResponse} from '../lib'; import {capitalizeWords} from '../lib'; // Displays information about a tree-of-life node @@ -25,7 +23,7 @@ export default defineComponent({ nodeName: {type: String, required: true}, tolMap: {type: Object as PropType<TolMap>, required: true}, lytOpts: {type: Object as PropType<LayoutOptions>, required: true}, - uiOpts: {type: Object, required: true}, + uiOpts: {type: Object as PropType<UiOptions>, required: true}, }, computed: { displayName(): string { |
