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

chore(deps): update dependency @stylistic/eslint-plugin to v2.9.0 #146

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@eslint/js": "9.12.0",
"@stylistic/eslint-plugin": "2.8.0",
"@stylistic/eslint-plugin": "2.9.0",
"@types/eslint__js": "8.42.3",
"@types/node": "20.16.10",
"@types/semver": "7.5.8",
Expand Down
12 changes: 6 additions & 6 deletions src/create-actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export type CreateActorOptions<TLogic extends xs.AnyActorLogic> =
export type CurryCreateActorFromLogic = (() => CurryCreateActorFromLogic) &
(<TLogic extends xs.AnyActorLogic>(
logic: TLogic,
) => CurryCreateActorFromLogicP1<TLogic>) &
options: CreateActorOptions<TLogic>,
) => xs.Actor<TLogic>) &
(<TLogic extends xs.AnyActorLogic>(
logic: TLogic,
options: CreateActorOptions<TLogic>,
) => xs.Actor<TLogic>);
) => CurryCreateActorFromLogicP1<TLogic>);

export type CurryCreateActorFromLogicP1<TLogic extends xs.AnyActorLogic> =
(() => CurryCreateActorFromLogicP1<TLogic>) &
Expand All @@ -36,11 +36,11 @@ export type CurryCreateActorFromLogicP1<TLogic extends xs.AnyActorLogic> =
export type CurryCreateActorWith = (() => CurryCreateActorWith) &
(<TLogic extends xs.AnyActorLogic>(
options: CreateActorOptions<TLogic>,
) => CurryCreateActorWithP1<TLogic>) &
logic: TLogic,
) => xs.Actor<TLogic>) &
(<TLogic extends xs.AnyActorLogic>(
options: CreateActorOptions<TLogic>,
logic: TLogic,
) => xs.Actor<TLogic>);
) => CurryCreateActorWithP1<TLogic>);

export type CurryCreateActorWithP1<TLogic extends xs.AnyActorLogic> =
(() => CurryCreateActorWithP1<TLogic>) &
Expand Down
6 changes: 3 additions & 3 deletions src/until-done.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export type CurryDoneWith =
| (() => CurryDoneWith)
| (<Actor extends AnyTerminalActor, Output extends xs.OutputFrom<Actor>>(
actor: Actor,
) => CurryDoneWithP1<Actor, Output>)
options: AuditionOptions,
) => CurryDoneWithP2<Actor, Output>)
| (<Actor extends AnyTerminalActor, Output extends xs.OutputFrom<Actor>>(
actor: Actor,
options: AuditionOptions,
) => CurryDoneWithP2<Actor, Output>);
) => CurryDoneWithP1<Actor, Output>);

export type CurryDoneWithP1<
Actor extends AnyTerminalActor,
Expand Down
6 changes: 3 additions & 3 deletions src/until-emitted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ export type CurryEmittedWith = (() => CurryEmittedWith) &
) => Promise<ActorEmittedTuple<TActor, TEmittedTypes>>) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
) => CurryEmittedWithP1<TActor>) &
options: AuditionOptions,
) => CurryEmittedWithP2<TActor>) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
options: AuditionOptions,
) => CurryEmittedWithP2<TActor>);
) => CurryEmittedWithP1<TActor>);

export type CurryEmittedWithP1<TActor extends AnyStateMachineActor> =
(() => CurryEmittedWithP1<TActor>) &
Expand Down
6 changes: 3 additions & 3 deletions src/until-event-received.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export type CurryEventReceivedWith = (() => CurryEventReceivedWith) &
) => CurryEventReceivedWithP3<TActor, TEventTypes>) &
(<TActor extends AnyEventReceiverActor>(
actor: TActor,
) => CurryEventReceivedWithP1<TActor>) &
options: AuditionEventOptions,
) => CurryEventReceivedWithP2<TActor>) &
(<TActor extends AnyEventReceiverActor>(
actor: TActor,
options: AuditionEventOptions,
) => CurryEventReceivedWithP2<TActor>);
) => CurryEventReceivedWithP1<TActor>);

export type CurryEventReceivedWithP1<TActor extends AnyEventReceiverActor> =
(() => CurryEventReceivedWithP1<TActor>) &
Expand Down
14 changes: 7 additions & 7 deletions src/until-event-sent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
import {head, isActorRef} from './util.js';

export type CurryEventSent = (() => CurryEventSent) &
(<Actor extends AnyActor>(actor: Actor) => CurryEventSentP1<Actor>) &
(<
TActor extends AnyActor,
TReceiver extends AnyEventReceiverActor = AnyEventReceiverActor,
Expand All @@ -26,7 +25,8 @@ export type CurryEventSent = (() => CurryEventSent) &
>(
actor: TActor,
eventTypes: TEventTypes,
) => CurryEventSentP2<TReceiver, TEventTypes>);
) => CurryEventSentP2<TReceiver, TEventTypes>) &
(<Actor extends AnyActor>(actor: Actor) => CurryEventSentP1<Actor>);

export type CurryEventSentP1<
TActor extends AnyActor,
Expand All @@ -49,20 +49,20 @@ export type CurryEventSentWith = (() => CurryEventSentWith) &
(<
TActor extends AnyActor,
TReceiver extends AnyEventReceiverActor = AnyEventReceiverActor,
const TEventTypes extends
ActorEventTypeTuple<TReceiver> = ActorEventTypeTuple<TReceiver>,
>(
actor: TActor,
options: AuditionEventOptions,
) => CurryEventSentWithP2<TActor, TReceiver>) &
eventTypes: TEventTypes,
) => CurryEventSentWithP3<TReceiver, TEventTypes>) &
(<
TActor extends AnyActor,
TReceiver extends AnyEventReceiverActor = AnyEventReceiverActor,
const TEventTypes extends
ActorEventTypeTuple<TReceiver> = ActorEventTypeTuple<TReceiver>,
>(
actor: TActor,
options: AuditionEventOptions,
eventTypes: TEventTypes,
) => CurryEventSentWithP3<TReceiver, TEventTypes>) &
) => CurryEventSentWithP2<TActor, TReceiver>) &
(<TActor extends AnyActor>(actor: TActor) => CurryEventSentWithP1<TActor>);

export type CurryEventSentWithP1<TActor extends AnyActor> =
Expand Down
29 changes: 14 additions & 15 deletions src/until-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ import {
export type CurrySnapshot = (() => CurrySnapshot) &
(<TActor extends AnySnapshotEmitterActor>(
actor: TActor,
) => CurrySnapshotP1<TActor>) &
predicate: SnapshotPredicate<TActor['logic']>,
) => CurrySnapshotP2<TActor>) &
(<TActor extends AnySnapshotEmitterActor>(
actor: TActor,
predicate: SnapshotPredicate<TActor['logic']>,
) => CurrySnapshotP2<TActor>);
) => CurrySnapshotP1<TActor>);

export type CurrySnapshotP1<TActor extends AnySnapshotEmitterActor> =
(() => CurrySnapshotP1<TActor>) &
((
predicate: SnapshotPredicate<TActor['logic']>,
) => CurrySnapshotP2<TActor>);
export type CurrySnapshotP1<TActor extends AnySnapshotEmitterActor> = ((
predicate: SnapshotPredicate<TActor['logic']>,
) => CurrySnapshotP2<TActor>) &
(() => CurrySnapshotP1<TActor>);

export type CurrySnapshotP2<TActor extends AnySnapshotEmitterActor> = Promise<
xs.SnapshotFrom<TActor['logic']>
Expand All @@ -31,26 +30,26 @@ export type CurrySnapshotP2<TActor extends AnySnapshotEmitterActor> = Promise<
export type CurrySnapshotWith = (() => CurrySnapshotWith) &
(<TActor extends AnySnapshotEmitterActor>(
actor: TActor,
) => CurrySnapshotWithP1<TActor>) &
predicate: SnapshotPredicate<TActor['logic']>,
options: AuditionOptions,
) => CurrySnapshotWithP3<TActor>) &
(<TActor extends AnySnapshotEmitterActor>(
actor: TActor,
predicate: SnapshotPredicate<TActor['logic']>,
) => CurrySnapshotWithP2<TActor>) &
(<TActor extends AnySnapshotEmitterActor>(
actor: TActor,
predicate: SnapshotPredicate<TActor['logic']>,
options: AuditionOptions,
) => CurrySnapshotWithP3<TActor>);
) => CurrySnapshotWithP1<TActor>);

// prettier-ignore
export type CurrySnapshotWithP1<TActor extends AnySnapshotEmitterActor> = (() => CurrySnapshotWithP1<TActor>) &
((
export type CurrySnapshotWithP1<TActor extends AnySnapshotEmitterActor> = ((
predicate: SnapshotPredicate<TActor['logic']>,
) => CurrySnapshotWithP2<TActor>) &
((
predicate: SnapshotPredicate<TActor['logic']>,
options: AuditionOptions,
) => CurrySnapshotWithP3<TActor>);
) => CurrySnapshotWithP3<TActor>) &
(() => CurrySnapshotWithP1<TActor>);

export type CurrySnapshotWithP2<TActor extends AnySnapshotEmitterActor> =
(() => CurrySnapshotWithP2<TActor>) &
Expand Down
25 changes: 12 additions & 13 deletions src/until-spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export type SpawnTarget = RegExp | string;
export type CurrySpawn = (() => CurrySpawn) &
(<TLogic extends xs.AnyActorLogic>(
actor: AnyStateMachineActor,
) => CurrySpawnP1<TLogic>) &
target: SpawnTarget,
) => CurrySpawnP2<TLogic>) &
(<TLogic extends xs.AnyActorLogic>(
actor: AnyStateMachineActor,
target: SpawnTarget,
) => CurrySpawnP2<TLogic>);
) => CurrySpawnP1<TLogic>);

export type CurrySpawnP1<TLogic extends xs.AnyActorLogic> =
(() => CurrySpawnP1<TLogic>) &
Expand All @@ -33,24 +33,23 @@ export type CurrySpawnP2<TLogic extends xs.AnyActorLogic> = Promise<
export type CurrySpawnWith = (() => CurrySpawnWith) &
(<TLogic extends xs.AnyActorLogic>(
actor: AnyStateMachineActor,
) => CurrySpawnWithP1<TLogic>) &
options: AuditionOptions,
target: SpawnTarget,
) => CurrySpawnWithP3<TLogic>) &
(<TLogic extends xs.AnyActorLogic>(
actor: AnyStateMachineActor,
options: AuditionOptions,
) => CurrySpawnWithP2<TLogic>) &
(<TLogic extends xs.AnyActorLogic>(
actor: AnyStateMachineActor,
options: AuditionOptions,
target: SpawnTarget,
) => CurrySpawnWithP3<TLogic>);
) => CurrySpawnWithP1<TLogic>);

export type CurrySpawnWithP1<TLogic extends xs.AnyActorLogic> =
export type CurrySpawnWithP1<TLogic extends xs.AnyActorLogic> = ((
options: AuditionOptions,
target: SpawnTarget,
) => CurrySpawnWithP3<TLogic>) &
(() => CurrySpawnWithP1<TLogic>) &
((options: AuditionOptions) => CurrySpawnWithP2<TLogic>) &
((
options: AuditionOptions,
target: SpawnTarget,
) => CurrySpawnWithP3<TLogic>);
((options: AuditionOptions) => CurrySpawnWithP2<TLogic>);

export type CurrySpawnWithP2<TLogic extends xs.AnyActorLogic> =
(() => CurrySpawnWithP2<TLogic>) &
Expand Down
36 changes: 18 additions & 18 deletions src/until-transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ import {
export type CurryTransition = (() => CurryTransition) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
) => CurryTransitionP1<TActor>) &
source: string,
target: string,
) => CurryTransitionP3) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
source: string,
) => CurryTransitionP2<TActor>) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
source: string,
target: string,
) => CurryTransitionP3);
) => CurryTransitionP1<TActor>);

export type CurryTransitionP1<TActor extends AnyStateMachineActor> =
(() => CurryTransitionP1<TActor>) &
Expand All @@ -58,13 +58,12 @@ export type CurryTransitionP2<TActor extends AnyStateMachineActor> =
export type CurryTransitionP3 = Promise<void>;

export type CurryTransitionWith = (() => CurryTransitionWith) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
) => CurryTransitionWithP1<TActor>) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
options: AuditionOptions,
) => CurryTransitionWithP2<TActor>) &
source: string,
target: string,
) => CurryTransitionWithP4) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
options: AuditionOptions,
Expand All @@ -73,31 +72,32 @@ export type CurryTransitionWith = (() => CurryTransitionWith) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
options: AuditionOptions,
source: string,
target: string,
) => CurryTransitionWithP4);
) => CurryTransitionWithP2<TActor>) &
(<TActor extends AnyStateMachineActor>(
actor: TActor,
) => CurryTransitionWithP1<TActor>);

// conflict with eslint-plugin-perfectionist
// prettier-ignore
export type CurryTransitionWithP1<TActor extends AnyStateMachineActor> =
& (() => CurryTransitionWithP1<TActor>)
& ((options: AuditionOptions) => CurryTransitionWithP2<TActor>)
& ((options: AuditionOptions, source: string) => CurryTransitionWithP3<TActor>)
& ((
options: AuditionOptions,
source: string,
target: string,
) => CurryTransitionWithP4);
) => CurryTransitionWithP4)
& (() => CurryTransitionWithP1<TActor>)
& ((options: AuditionOptions) => CurryTransitionWithP2<TActor>)
& ((options: AuditionOptions, source: string) => CurryTransitionWithP3<TActor>);

// conflict with eslint-plugin-perfectionist
// prettier-ignore
export type CurryTransitionWithP2<TActor extends AnyStateMachineActor> =
& (() => CurryTransitionWithP2<TActor>)
& ((source: string) => CurryTransitionWithP3<TActor>)
& ((
source: string,
target: string,
) => CurryTransitionWithP4);
) => CurryTransitionWithP4)
& (() => CurryTransitionWithP2<TActor>)
& ((source: string) => CurryTransitionWithP3<TActor>);

export type CurryTransitionWithP3<TActor extends AnyStateMachineActor> =
(() => CurryTransitionWithP3<TActor>) &
Expand Down