Skip to content

Commit

Permalink
fix(types): fix for ts 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jan 20, 2020
1 parent 8285362 commit 3a8adb6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-config-posva": "^3.0.2",
"faked-promise": "^2.1.0",
"jest": "^24.7.1",
"typescript": "^3.4.3",
"typescript": "^3.7.5",
"vue": "^2.6.10",
"vue-jest": "^3.0.4",
"vue-template-compiler": "^2.6.10"
Expand Down
28 changes: 10 additions & 18 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,21 @@ import {
DefaultComputed,
ComponentOptions,
PropsDefinition,
PropType
} from 'vue/types/options'
import { Vue } from 'vue/types/vue';
import { Vue } from 'vue/types/vue'

interface Data {
(): {
export declare var Promised: {
props: {
tag: PropType<string>
promise: PropType<Promise<any> | null>
pendingDelay: PropType<number | string>
}

data: () => {
resolved: boolean
data: any | null
error: any | null

isDelayElapsed: boolean
}
}

interface Props {
tag: String
promise: Promise<any> | null
pendingDelay: Number | String
}

export var Promised: ComponentOptions<
Vue,
Data,
DefaultMethods<Vue>,
DefaultComputed,
PropsDefinition<Props>
>
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5027,10 +5027,10 @@ type-fest@^0.8.1:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==

typescript@^3.4.3:
version "3.6.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d"
integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==
typescript@^3.7.5:
version "3.7.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==

uglify-js@^3.1.4:
version "3.7.2"
Expand Down

0 comments on commit 3a8adb6

Please sign in to comment.