Skip to content

the char '*' at the end of the example code #63921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sholsyjy opened this issue Nov 28, 2018 · 1 comment
Closed

the char '*' at the end of the example code #63921

sholsyjy opened this issue Nov 28, 2018 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@sholsyjy
Copy link

sholsyjy commented Nov 28, 2018

  • VSCode Version: 1.29.1
  • OS Version: macOS Mojave 10.14.1

Steps to Reproduce:

1.npm install [email protected] @types/[email protected]
2. create a .tsx file and write

import * as React from 'react';

React.useMemo

image

Why there is a black line at the end?


   /**
     * `useMemo` will only recompute the memoized value when one of the `inputs` has changed.
     *
     * Usage note: if calling `useMemo` with a referentially stable function, also give it as the input in
     * the second argument.
     *
     * ```ts
     * function expensive () { ... }
     *
     * function Component () {
     *   const expensiveResult = useMemo(expensive, [expensive])
     *   return ...
     * }
     * ```
     *
     * @version experimental
     * @see https://reactjs.org/docs/hooks-reference.html#usememo
     */
    function useMemo<T>(factory: () => T, inputs: InputIdentityList): T;

see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/9414e3cb3a771a2f6b6b32b9290c70dee343ec23/types/react/index.d.ts#L891-L910

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 28, 2018

Duplicate of microsoft/TypeScript#23517

@mjbvz mjbvz marked this as a duplicate of microsoft/TypeScript#23517 Nov 28, 2018
@mjbvz mjbvz closed this as completed Nov 28, 2018
@mjbvz mjbvz added upstream Issue identified as 'upstream' component related (exists outside of VS Code) *duplicate Issue identified as a duplicate of another issue(s) labels Nov 28, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants