Open stavrogyn opened 2 weeks ago
includes is implemented according to the issue
includes
The operator checking if a store (containing either a string or an array) includes a specified value.
src
param-case
src/method-name/index.ts
camelCase
src/method-name/method-name.test.ts
src/method-name/method-name.fork.test.ts
test-typings/method-name.ts
// @ts-expect-error
import { expectType } from 'tsd'
src/method-name/readme.md
Patronum/MethodName
Motivation
Formulae
Arguments
Return
Example
title
slug
desription
group
/operators
Description
includes
is implemented according to the issueThe operator checking if a store (containing either a string or an array) includes a specified value.
Checklist for a new method
src
directory inparam-case
src/method-name/index.ts
in ESModules export incamelCase
named exportsrc/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