Skip to content
Snippets Groups Projects
Verified Commit baec49f4 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fixed: issue with ts and vue

parent 2a1c47b8
No related branches found
No related tags found
1 merge request!8Support for react.js components
Pipeline #1054 passed
......@@ -3,8 +3,6 @@ import Boytacean from "./vue/app.vue";
import { default as _wasm, GameBoy, PadKey, PpuMode } from "./lib/boytacean.js";
import info from "./package.json";
console.info(Boytacean);
const PIXEL_UNSET_COLOR = 0x1b1a17ff;
const LOGIC_HZ = 600;
......@@ -13,7 +11,7 @@ const TIMER_HZ = 60;
const IDLE_HZ = 10;
const FREQUENCY_DELTA = 60;
const DISPLAY_WIDTH = 160;
const DISPLAY_HEIGHT = 144;
const DISPLAY_RATIO = DISPLAY_WIDTH / DISPLAY_HEIGHT;
......
declare module "*.vue" {
import Vue from "vue";
export default Vue;
}
......@@ -9,7 +9,7 @@
}
</style>
<script>
<script lang="ts">
export const Boytacean = {
data() {
return {
......
import { App } from "vue";
import { Button } from "./button/button.vue";
import Button from "./button/button.vue";
const install = (Vue: App) => {
Vue.component("vue", Button);
......
......@@ -7,6 +7,5 @@ const install = (Vue: App) => {
};
export * from "./components";
export { Boytacean } from "./app.vue";
export default install;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment