"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "types/test/options-test.ts" between
vue-2.6.9.tar.gz and vue-2.6.10.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

options-test.ts  (vue-2.6.9):options-test.ts  (vue-2.6.10)
skipping to change at line 71 skipping to change at line 71
interface IUser { interface IUser {
foo: string, foo: string,
bar: number bar: number
} }
interface ICat { interface ICat {
foo: any, foo: any,
bar: object bar: object
} }
type ConfirmCallback = (confirm: boolean) => void;
Vue.component('union-prop', { Vue.component('union-prop', {
props: { props: {
cat: Object as PropType<ICat>, cat: Object as PropType<ICat>,
complexUnion: { type: [User, Number] as PropType<User | number> }, complexUnion: { type: [User, Number] as PropType<User | number> },
kittyUser: Object as PropType<ICat & IUser>, kittyUser: Object as PropType<ICat & IUser>,
callback: Function as PropType<ConfirmCallback>,
mixed: [RegExp, Array], mixed: [RegExp, Array],
object: [Cat, User], object: [Cat, User],
primitive: [String, Number], primitive: [String, Number],
regex: RegExp, regex: RegExp,
union: [User, Number] as PropType<User | number> union: [User, Number] as PropType<User | number>
}, },
data() { data() {
this.cat; this.cat;
this.complexUnion; this.complexUnion;
this.kittyUser; this.kittyUser;
this.callback(true);
this.mixed; this.mixed;
this.object; this.object;
this.primitive; this.primitive;
this.regex.compile; this.regex.compile;
this.union; this.union;
return { return {
fixedSize: this.union, fixedSize: this.union,
} }
} }
}); });
skipping to change at line 284 skipping to change at line 287
return value * 2; return value * 2;
} }
}, },
parent: new Vue, parent: new Vue,
mixins: [Vue.component(""), ({} as ComponentOptions<Vue>)], mixins: [Vue.component(""), ({} as ComponentOptions<Vue>)],
name: "Component", name: "Component",
extends: {} as ComponentOptions<Vue>, extends: {} as ComponentOptions<Vue>,
delimiters: ["${", "}"] delimiters: ["${", "}"]
}); });
Vue.component('custom-prop-type-function', {
props: {
callback: Function as PropType<(confirm: boolean) => void>,
},
methods: {
confirm(){
this.callback(true);
}
}
});
Vue.component('provide-inject', { Vue.component('provide-inject', {
provide: { provide: {
foo: 1 foo: 1
}, },
inject: { inject: {
injectFoo: 'foo', injectFoo: 'foo',
injectBar: Symbol(), injectBar: Symbol(),
injectBaz: { from: 'baz' }, injectBaz: { from: 'baz' },
injectQux: { default: 1 }, injectQux: { default: 1 },
injectQuux: { from: 'quuz', default: () => ({ value: 1 })} injectQuux: { from: 'quuz', default: () => ({ value: 1 })}
 End of changes. 4 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)