Open earthspacon opened 4 months ago
@sergeysova @AlexandrHoroshih 😃
Added new section to a checklist to help integrating with new documentation website
@sergeysova can you help plz with tests in src/split-map/split-map.fork.test.ts
, old tests are failing, maybe because new ones added and snapshot updated?
Description
This PR partially resolves this issue.
Often we need the same behavior as in split — react to derived events received from
cases
and trigger the corresponding units. Intargets
field we can pass object with the same keys as incases
and values withunits
to trigger on the corresponding event.Maybe we should think about
targets
namingChecklist
src/method-name/method-name.test.ts
src/method-name/method-name.fork.test.ts
test-typings/method-name.ts
// @ts-expect-error
to mark expected type errorimport { expectType } from 'tsd'
to check expected return typesrc/method-name/readme.md
Patronum/MethodName
Motivation
,Formulae
,Arguments
andReturn
sections for each overloadExample
section for each overloadsrc/method-name/readme.md
title
. Make sure it uses camelCase syntax just like the method itselfslug
. Use param-case to write it. In most cases it will be just liketitle
desription
with one short sentence describing what method useful forgroup
. To categorize method on/operators
page. Full list of available groups, you can see in documentation/src/content/config.ts