Skip to content

Missing Parentheses in TypeScript Documentation Example for #paths #60995

Closed
microsoft/TypeScript-Website
#3305
@Git-abby

Description

@Git-abby

Acknowledgement

  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment

The TypeScript documentation example for configuring paths in tsconfig.json has a typo involving missing {parentheses}. The issue can be found in the following code snippet:

Steps to Reproduce:
TypeScript - Paths

Image

Corrected:

{
  "compilerOptions": {
    "paths": {
      "app/*": ["./src/app/*"],
      "config/*": ["./src/app/_config/*"],
      "environment/*": ["./src/environments/*"],
      "shared/*": ["./src/app/_shared/*"],
      "helpers/*": ["./src/helpers/*"],
      "tests/*": ["./src/tests/*"]
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions