【发布时间】:2020-05-18 10:36:27
【问题描述】:
我是typescript的新手,我正在尝试阅读Vue的源代码,但是语法很混乱,下面代码中的'&'是什么意思,任何人都可以告诉我如何在官方文档中找到它?
/**
* This type should be used when an array of strings is used for a component's `props` value.
*/
export type ThisTypedComponentOptionsWithArrayProps<V extends Vue, Data, Methods, Computed, PropNames extends string> =
object &
ComponentOptions<V, DataDef<Data, Record<PropNames, any>, V>, Methods, Computed, PropNames[], Record<PropNames, any>> &
ThisType<CombinedVueInstance<V, Data, Methods, Computed, Readonly<Record<PropNames, any>>>>;
【问题讨论】:
标签: typescript vue.js