File: tsxQuickInfo5.ts

package info (click to toggle)
node-typescript 4.8.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 523,068 kB
  • sloc: javascript: 1,735,777; makefile: 7; sh: 1
file content (18 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// <reference path='fourslash.ts' />

//@Filename: file.tsx
// @jsx: preserve
// @noLib: true

//// declare function ComponentWithTwoAttributes<K,V>(l: {key1: K, value: V}): JSX.Element;

//// function Baz<T,U>(key1: T, value: U) {
////     let a0 = <ComponentWi/*1*/thTwoAttributes k/*2*/ey1={key1} val/*3*/ue={value} />
////     let a1 = <ComponentWithTwoAttributes {...{key1, value: value}} key="Component" />
//// }

verify.quickInfos({
    1: "function ComponentWithTwoAttributes<T, U>(l: {\n    key1: T;\n    value: U;\n}): JSX.Element",
    2: "(property) key1: T",
    3: "(property) value: U",
});