35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//@Filename: file.tsx
|
|
// @jsx: preserve
|
|
// @noLib: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
//// import React = require('react');
|
|
//// export interface ClickableProps {
|
|
//// children?: string;
|
|
//// className?: string;
|
|
//// }
|
|
|
|
//// export interface ButtonProps extends ClickableProps {
|
|
//// onClick(event?: React.MouseEvent<HTMLButtonElement>): void;
|
|
//// }
|
|
|
|
//// function _buildMainButton({ onClick, children, className }: ButtonProps): JSX.Element {
|
|
//// return(<button className={className} onClick={onClick}>{ children || 'MAIN BUTTON'}</button>);
|
|
//// }
|
|
|
|
//// export function MainButton(props: ButtonProps): JSX.Element {
|
|
//// return this._buildMainButton(props);
|
|
//// }
|
|
//// let e1 = <MainButton/*1*/ /*2*/
|
|
|
|
goTo.marker("1");
|
|
verify.signatureHelpCountIs(1);
|
|
verify.currentSignatureHelpIs("MainButton(props: ButtonProps): any");
|
|
verify.currentParameterSpanIs("props: ButtonProps");
|
|
|
|
goTo.marker("2");
|
|
verify.signatureHelpCountIs(1);
|
|
verify.currentSignatureHelpIs("MainButton(props: ButtonProps): any");
|
|
verify.currentParameterSpanIs("props: ButtonProps");
|