Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

[WIP] ember-decorators #12

Closed
wants to merge 10 commits into from
Closed

[WIP] ember-decorators #12

wants to merge 10 commits into from

Conversation

dwickern
Copy link
Collaborator

I'm creating this as a starting point for ember-decorators typings. I'm putting the typings here to leverage DT's test framework. Ultimately these typings belong in the ember-decorators repo.

I've found that typescript decorators are severely limited in what they can express. I'll try to document some of those issues and possible workarounds.

I based this branch on the new-object-model branch since the typings didn't work on master (without noImplicitAny or some extra type annotations).

@bartocc
Copy link
Contributor

bartocc commented Aug 23, 2017

Hey @dwickern

I'm willing to help here ! Do you need me to ping you on slack ?

@dwickern
Copy link
Collaborator Author

@bartocc I'd appreciate the help! I made this branch to get things started for anyone who wants to contribute. We're in slack if you have any questions

@dwickern dwickern closed this Aug 27, 2017
@dwickern dwickern changed the base branch from new-object-model to master August 27, 2017 16:56
@dwickern dwickern reopened this Aug 27, 2017
}

declare module 'ember-decorators/object' {
export function computed(...keys: string[]): MethodDecorator;
Copy link

Choose a reason for hiding this comment

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

needs to be a PropertyDecorator as well

  export function computed(...dependentKeys: string[]): PropertyDecorator;
  export function computed(target: any, propertyKey: string | symbol): void;

@championswimmer
Copy link

@dwickern
Can I help here in any way ?
Would love to see this merged

@dwickern
Copy link
Collaborator Author

I'm not sure this issue is relevant any more given that ember decorators are written in TS now. @pzuraq ?

@pzuraq
Copy link

pzuraq commented Feb 26, 2018

ember-decorators are not actually written in TS, they are compatible now. If we can add the typings there I’m completely ok with it, either way

@chriskrycho
Copy link
Member

Yeah, we should close this issue. You can check the pull requests on the specific repositories I opened over the weekend!

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

Successfully merging this pull request may close these issues.

None yet

6 participants