Skip to content
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

[api-extractor] current version is unusable #736

Closed
ibezkrovnyi opened this issue Jul 5, 2018 · 2 comments
Closed

[api-extractor] current version is unusable #736

ibezkrovnyi opened this issue Jul 5, 2018 · 2 comments

Comments

@ibezkrovnyi
Copy link

@microsoft/api-extractor@5.9.1

source

https://github.com/ibezkrovnyi/image-quantization/blob/master/src/image-q.ts

d.ts

import * as constants from './constants';
import * as conversion from './conversion';
import * as distance from './distance';
import * as palette from './palette';
import * as image from './image';
import * as quality from './quality';
import * as utils from './utils';
export { 
  buildPalette, 
  buildPaletteSync, 
  applyPalette, 
  applyPaletteSync, 
  ImageQuantization, 
  PaletteQuantization, 
  ColorDistanceFormula 
} from './basicAPI';

export { 
  constants, 
  conversion, 
  distance, 
  palette, 
  image, 
  quality, 
  utils
};

image-q.api.json

{
  "kind": "package",
  "name": "image-q",
  "summary": [],
  "remarks": [],
  "exports": {
    "applyPalette": {...},
    "applyPaletteSync": {...},
    "buildPalette": {...},
    "buildPaletteSync": {...}
  }
}

actual result

only 4 top-level functions extracted

expected to be extracted

  • all functions
  • interfaces
  • type aliases
  • primitives
  • objects
  • arrays
  • classes
  • es6namespace in statements like import * as es6namespace from
@octogonz
Copy link
Collaborator

octogonz commented Jul 6, 2018

Thanks for providing this repro. I am on vacation for the next few weeks, but I can take a look when I get back. I suspect it is a configuration issue.

@octogonz
Copy link
Collaborator

The problematic syntax is:

import * as constants from './constants';
export { constants };

Closing, since this is a duplicate of issue #663 which has more investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants