MCPcopy
hub / github.com/vuejs/composition-api / SetupContext

Interface SetupContext

src/runtimeContext.ts:148–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146export type Slots = Readonly<InternalSlots>
147
148export interface SetupContext<E extends EmitsOptions = {}> {
149 attrs: Data
150 slots: Slots
151 emit: EmitFn<E>
152 /**
153 * @deprecated not available in Vue 2
154 */
155 expose: (exposed?: Record<string, any>) => void
156
157 /**
158 * @deprecated not available in Vue 3
159 */
160 readonly parent: ComponentInstance | null
161
162 /**
163 * @deprecated not available in Vue 3
164 */
165 readonly root: ComponentInstance
166
167 /**
168 * @deprecated not available in Vue 3
169 */
170 readonly listeners: { [key in string]?: Function }
171
172 /**
173 * @deprecated not available in Vue 3
174 */
175 readonly refs: { [key: string]: Vue | Element | Vue[] | Element[] }
176}
177
178export interface ComponentPublicInstance {}
179

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…