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

Interface ExpectedProps

test-dts/defineComponent.test-d.tsx:19–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18describe('with object props', () => {
19 interface ExpectedProps {
20 a?: number | undefined
21 b: string
22 e?: Function
23 h: boolean
24 j: undefined | (() => string | undefined)
25 bb: string
26 bbb: string
27 bbbb: string | undefined
28 bbbbb: string | undefined
29 cc?: string[] | undefined
30 dd: { n: 1 }
31 ee?: () => string
32 ff?: (a: number, b: string) => { a: boolean }
33 ccc?: string[] | undefined
34 ddd: string[]
35 eee: () => { a: string }
36 fff: (a: number, b: string) => { a: boolean }
37 hhh: boolean
38 ggg: 'foo' | 'bar'
39 ffff: (a: number, b: string) => { a: boolean }
40 iii?: (() => string) | (() => number)
41 jjj: ((arg1: string) => string) | ((arg1: string, arg2: string) => string)
42 kkk?: any
43 validated?: string
44 date?: Date
45 l?: Date
46 ll?: Date | number
47 lll?: string | number
48 }
49
50 type GT = string & { __brand: unknown }
51

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…