From a724543dac5836e55cac4a3dfdc62f2f8884b8f0 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 26 Nov 2019 11:49:10 +0800 Subject: [PATCH] Add some type annotations --- resources/assets/tests/setup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/tests/setup.ts b/resources/assets/tests/setup.ts index 3555e72b..b2a6560c 100644 --- a/resources/assets/tests/setup.ts +++ b/resources/assets/tests/setup.ts @@ -17,7 +17,7 @@ window.blessing = { } class Headers extends Map { - constructor(headers = {}) { + constructor(headers: object = {}) { // @ts-ignore super(Object.entries(headers)) } @@ -46,7 +46,7 @@ Object.assign(console, { Vue.prototype.$t = key => key -Vue.directive('t', (el, { value }) => { +Vue.directive('t', (el: Element, { value }) => { if (typeof value === 'string') { el.innerHTML = value } else if (typeof value === 'object') {