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

fix(core/properties): Fix typings for nativeValueChange #5791

Merged
merged 7 commits into from
Jun 19, 2018

Conversation

speigg
Copy link
Contributor

@speigg speigg commented May 6, 2018

No description provided.

@ghost ghost added the ♥ community PR label May 6, 2018
@ns-bot ns-bot added the cla: yes label May 6, 2018
@@ -52,7 +52,7 @@ export class Property<T extends ViewBase, U> {
public readonly setNative: symbol;
public readonly defaultValue: U;
public register(cls: { prototype: T }): void;
public nativeValueChange(T, U): void;
public nativeValueChange(target:T, value:U): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

First argument is generally referred as owner across the codebase:

public readonly nativeValueChange: (owner: T, value: U) => void;

Can you update this?

@ghost ghost assigned manoldonev May 8, 2018
@ghost ghost added in progress and removed ♥ community PR labels May 8, 2018
@manoldonev manoldonev added this to the 4.1 milestone May 21, 2018
@manoldonev manoldonev removed this from the 4.1 milestone May 21, 2018
@dtopuzov dtopuzov modified the milestone: 4.1 May 21, 2018
@vakrilov
Copy link
Contributor

vakrilov commented Jun 19, 2018

Hey @speigg
I think this PR is almost ready to be merged. Do you mind implementing @manoldonev 's suggestion about the owner param and add this to master? Also be sure to run npm run tslint and fix the linter errors.
Thanks!

speigg added 2 commits June 19, 2018 06:09
Changed parameter name of nativeValueChange from “target” to “owner”
Fixed white space to match coding style
Fixed white space
@speigg
Copy link
Contributor Author

speigg commented Jun 19, 2018

I made the changes directly on github.com, as I don’t have the {N} repository downloded and setup for development. Anyway, the CI seems to be happy about the whitespace now.

@ghost ghost assigned vakrilov Jun 19, 2018
@vakrilov
Copy link
Contributor

test

@vakrilov vakrilov merged commit 357c8ec into NativeScript:master Jun 19, 2018
@ghost ghost removed the in progress label Jun 19, 2018
@lock
Copy link

lock bot commented Aug 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants