⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
vue
/
types
/
View File Name :
v3-setup-context.d.ts
import { VNode } from './vnode' import { Data, UnionToIntersection } from './common' import { Vue } from './vue' export type Slot = (...args: any[]) => VNode[] export type Slots = Record<string, Slot | undefined> export type ObjectEmitsOptions = Record< string, ((...args: any[]) => any) | null > export type EmitsOptions = ObjectEmitsOptions | string[] export type EmitFn< Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options, ReturnType extends void | Vue = void > = Options extends Array<infer V> ? (event: V, ...args: any[]) => ReturnType : {} extends Options // if the emit is empty object (usually the default value for emit) should be converted to function ? (event: string, ...args: any[]) => ReturnType : UnionToIntersection< { [key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => ReturnType : (event: key, ...args: any[]) => ReturnType }[Event] > export interface SetupContext<E extends EmitsOptions = {}> { attrs: Data /** * Equivalent of `this.$listeners`, which is Vue 2 only. */ listeners: Record<string, Function | Function[]> slots: Slots emit: EmitFn<E> expose(exposed?: Record<string, any>): void }