Skip to content

Added ApiItemKind enum to ApiItem and refactored child classes - #79

Merged
Dan Gaeta (dgaeta) merged 3 commits into
masterfrom
dagaeta/ApiItemKind
Feb 1, 2017
Merged

Dan Gaeta (dgaeta) merged 3 commits into
masterfrom
dagaeta/ApiItemKind

Conversation

@dgaeta

Copy link
Copy Markdown
Contributor

ApiItemKind enum is a refactoring needed for implementing local API reference resolution

@octogonz Pete Gonzalez (octogonz) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See notes

export enum ApiItemKind {
/**
* A TypeScript class.
*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our coding convention is InitialCaps for enum members. This will also avoid any confusion with TypeScript language keywords such as "class"

* A TypeScript class.
*/
class = 0,
/**

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your comment, it might also be useful to say which ApiItem class goes with each enum. E.g. Interface, Class, TypeLiteral are all ApiStructuredType

@dgaeta
Dan Gaeta (dgaeta) merged commit 249952d into master Feb 1, 2017
Pete Gonzalez (octogonz) pushed a commit that referenced this pull request Feb 13, 2017
Added ApiItemKind enum to ApiItem and refactored child classes
Christian Gonzalez (christiango) pushed a commit to christiango/web-build-tools that referenced this pull request Aug 22, 2017
Added ApiItemKind enum to ApiItem and refactored child classes
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

Successfully merging this pull request may close these issues.

3 participants