mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 17:31:54 +00:00
Fix typing issues
This commit is contained in:
parent
d258d0cfbe
commit
bccd53ae5e
1 changed files with 9 additions and 12 deletions
|
@ -1,21 +1,19 @@
|
||||||
import "@fontsource/material-icons";
|
import "@fontsource/material-icons";
|
||||||
import Spacer from "components/layout/Spacer.vue";
|
import Spacer from "components/layout/Spacer.vue";
|
||||||
import Day from "./Day.vue";
|
import { CoercableComponent, Component, GatherProps, GenericComponent, jsx } from "features/feature";
|
||||||
import { CoercableComponent, Component, GatherProps, jsx } from "features/feature";
|
import { BaseLayer, createLayer, GenericLayer, layers } from "game/layers";
|
||||||
import { BaseLayer, GenericLayer, layers } from "game/layers";
|
|
||||||
import { createLayer } from "game/layers";
|
|
||||||
import { persistent } from "game/persistence";
|
import { persistent } from "game/persistence";
|
||||||
import type { PlayerData } from "game/player";
|
import type { PlayerData } from "game/player";
|
||||||
import player from "game/player";
|
import player from "game/player";
|
||||||
import { format, formatTime } from "util/bignum";
|
import { format, formatTime } from "util/bignum";
|
||||||
import { render, renderRow, VueFeature } from "util/vue";
|
|
||||||
import { computed, ref, unref } from "vue";
|
|
||||||
import type { Ref } from "vue";
|
|
||||||
import trees from "./layers/trees";
|
|
||||||
import { createLazyProxy } from "util/proxies";
|
|
||||||
import { Computable, convertComputable, ProcessedComputable } from "util/computed";
|
import { Computable, convertComputable, ProcessedComputable } from "util/computed";
|
||||||
import Modal from "components/Modal.vue";
|
import { createLazyProxy } from "util/proxies";
|
||||||
|
import { renderRow, VueFeature } from "util/vue";
|
||||||
|
import type { Ref } from "vue";
|
||||||
|
import { computed, ref, unref } from "vue";
|
||||||
import "./advent.css";
|
import "./advent.css";
|
||||||
|
import Day from "./Day.vue";
|
||||||
|
import trees from "./layers/trees";
|
||||||
|
|
||||||
export interface Day extends VueFeature {
|
export interface Day extends VueFeature {
|
||||||
day: number;
|
day: number;
|
||||||
|
@ -23,7 +21,6 @@ export interface Day extends VueFeature {
|
||||||
symbol: CoercableComponent;
|
symbol: CoercableComponent;
|
||||||
story: string;
|
story: string;
|
||||||
opened: Ref<boolean>;
|
opened: Ref<boolean>;
|
||||||
unlocked: ProcessedComputable<boolean>;
|
|
||||||
shouldNotify: ProcessedComputable<boolean>;
|
shouldNotify: ProcessedComputable<boolean>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +50,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
...day,
|
...day,
|
||||||
opened,
|
opened,
|
||||||
shouldNotify,
|
shouldNotify,
|
||||||
[Component]: Day,
|
[Component]: Day as GenericComponent,
|
||||||
[GatherProps]: function (this: Day) {
|
[GatherProps]: function (this: Day) {
|
||||||
const { day, layer, symbol, opened, shouldNotify, story } = this;
|
const { day, layer, symbol, opened, shouldNotify, story } = this;
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue