Skip to content

Allow to use condition with multiple units - #353

Merged
sergeysova merged 3 commits into
effector:mainfrom
Rastraponovich:condition-with-multiple-units
Mar 19, 2026
Merged

Allow to use condition with multiple units#353
sergeysova merged 3 commits into
effector:mainfrom
Rastraponovich:condition-with-multiple-units

Conversation

@Rastraponovich

Copy link
Copy Markdown
Contributor

Description

Checklist for a new method

  • Create a directory for the new method in the src directory in param-case
  • Place the source code to src/method-name/index.ts in ESModules export in camelCase named export
  • Add tests to src/method-name/method-name.test.ts
  • Add fork tests to src/method-name/method-name.fork.test.ts
  • Add type tests to test-typings/method-name.ts
    • Use // @ts-expect-error to mark expected type error
    • import { expectType } from 'tsd' to check expected return type
  • Add documentation in src/method-name/readme.md
    • Add header Patronum/MethodName
    • Add section with overloads, if have
    • Add Motivation, Formulae, Arguments and Return sections for each overload
    • Add useful examples in Example section for each overload
  • Fill frontmatter in src/method-name/readme.md
    • Add title. Make sure it uses camelCase syntax just like the method itself
    • Add slug. Use param-case to write it. In most cases it will be just like title
    • Add desription with one short sentence describing what method useful for
    • Add group. To categorize method on /operators page. Full list of available groups, you can see in documentation/src/content/config.ts

@sergeysova sergeysova self-assigned this Mar 19, 2026

@sergeysova sergeysova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Rastraponovich Thank you! Great work

@sergeysova
sergeysova merged commit 40544b2 into effector:main Mar 19, 2026
3 of 4 checks passed
@sergeysova sergeysova changed the title feat: condition with multiple units Allow to use condition with multiple units Mar 19, 2026
@sergeysova sergeysova added the feature New functionality label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants