Skip to content

Cannot export a default abstract class inline #10553

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
danfma opened this issue Aug 26, 2016 · 1 comment
Closed

Cannot export a default abstract class inline #10553

danfma opened this issue Aug 26, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@danfma
Copy link

danfma commented Aug 26, 2016

The compiler does not allow me to export a default abstract class from a file.

Example:

export default abstract class MyClass {
}

but I can do export when separating the definition from the export.

tsconfig.json

{
  "compilerOptions": {
    "module": "amd",
    "target": "es5",
    "lib": [
      "es5", "es2015"
    ],
    "jsx": "react",
    "noEmitHelpers": true,
    "noImplicitAny": false,
    "noEmitOnError": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "allowSyntheticDefaultImports": true,
    "forceConsistentCasingInFileNames": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "sourceMap": true,
    "moduleResolution": "node",
    "rootDir": "src"
  },
  "exclude": [
    "node_modules",
    "jspm_packages",
    "lib"
  ]
}
@mhegazy mhegazy added the Duplicate An existing issue was already created label Aug 26, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Aug 26, 2016

Duplicate of #3792

image

@mhegazy mhegazy closed this as completed Aug 26, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants