Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Makemeta optional (default toundefined)#94

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JaKXz merged 1 commit intoredux-utilities:masterfromwub:patch-1
Jan 17, 2018

Conversation

@wub
Copy link
Contributor

@wubwub commentedNov 30, 2017

No description provided.

@coveralls
Copy link

coveralls commentedNov 30, 2017
edited
Loading

Coverage Status

Coverage remained the same at 100.0% when pulling786f2c3 on wub:patch-1 into388ca8f on acdlite:master.

@wub
Copy link
ContributorAuthor

wub commentedNov 30, 2017

Sorry, not an expert in versioning - what should this be bumped to?

@wubwub mentioned this pull requestNov 30, 2017
Copy link
Contributor

@JaKXzJaKXz left a comment

Choose a reason for hiding this comment

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

This LGTM! don't worry about the versioning :) I'll probably release it as a patch.

Perhaps it would be nice to document the typings in the README? do you think you can take that on as well?

cc@unional in case you have any thoughts.

@unional
Copy link
Contributor

* The optional `meta` property MAY be any type of value.
* It is intended for any extra information that is not part of the payload.
*/
meta:Meta;

Choose a reason for hiding this comment

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

Isn't this supposed to be optional?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nope. That's the whole point. It should not be optional. See#53 and related discussion.

Choose a reason for hiding this comment

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

Hey, sorry to butt in here. Just hit this issue and am a bit confused... Currently I have this issue:

constx:FSA<string,undefined>={type:"foo",payload:"hello"}
Type '{ type: string; payload: string; }' is not assignable to type 'FluxStandardAction<string, undefined>'.  Property 'meta' is missing in type '{ type: string; payload: string; }'.

So setting the type toundefined does not make the attribute optional.

I think the DefinitelyTyped defs handle thisin a more appropriate way.

Copy link
Contributor

Choose a reason for hiding this comment

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

We discussed that here:#53 (comment)

It is debatable on which is a better solution.
I would say whenmicrosoft/TypeScript#12400 (comment) is resolved, we will be just fine.

Choose a reason for hiding this comment

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

Ah yeah, makes sense. It's just annoying having to add extra code to satisfy types, but a small price to pay I suppose. :)

@JaKXzJaKXz mentioned this pull requestDec 2, 2017
@JaKXz
Copy link
Contributor

Okay so unless anyone is opposed I'm going to merge this and release it as a patch today :)

@JaKXzJaKXz merged commit93016e9 intoredux-utilities:masterJan 17, 2018
@JaKXz
Copy link
Contributor

+ flux-standard-action@2.0.1 has been published! sorry for the delay, it completely slipped my mind before.

In related news,#100 would be a prime candidate for another patch like this one...

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

4 more reviewers

@leesiongchanleesiongchanleesiongchan left review comments

@rhys-vdwrhys-vdwrhys-vdw left review comments

@unionalunionalunional left review comments

@JaKXzJaKXzJaKXz approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@wub@coveralls@unional@JaKXz@leesiongchan@rhys-vdw

[8]ページ先頭

©2009-2025 Movatter.jp