Skip to content

Commit

Permalink
fix(signal): reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 29, 2023
1 parent 020a083 commit 75f688f
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion core/signal/src/command-handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {defineCommand} from './core2.js';
import {defineCommand} from './core.js';

/**
* Command handler/define interface.
Expand Down
2 changes: 1 addition & 1 deletion core/signal/src/command-trigger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {requestCommand} from './core2.js';
import {requestCommand} from './core.js';

import type {OmitFirstParam, Stringifyable} from '@alwatr/type';

Expand Down
2 changes: 1 addition & 1 deletion core/signal/src/context-consumer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getDetail, subscribe, unsubscribe, untilNext} from './core2.js';
import {getDetail, subscribe, unsubscribe, untilNext} from './core.js';

import type {Stringifyable, OmitFirstParam} from '@alwatr/type';

Expand Down
2 changes: 1 addition & 1 deletion core/signal/src/context-provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {clearDetail, dispatch, getDetail} from './core2.js';
import {clearDetail, dispatch, getDetail} from './core.js';

import type {Stringifyable, OmitFirstParam} from '@alwatr/type';

Expand Down
2 changes: 1 addition & 1 deletion core/signal/src/event-listener.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getDetail, subscribe, unsubscribe, untilNext} from './core2.js';
import {getDetail, subscribe, unsubscribe, untilNext} from './core.js';

import type {Stringifyable, OmitFirstParam} from '@alwatr/type';

Expand Down
2 changes: 1 addition & 1 deletion core/signal/src/event-trigger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {dispatch, getDetail} from './core2.js';
import {dispatch, getDetail} from './core.js';

import type {Stringifyable, OmitFirstParam} from '@alwatr/type';

Expand Down
6 changes: 3 additions & 3 deletions core/signal/src/requestable-context-consumer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {contextConsumer} from './context-consumer.js';
import {requestContext} from './core2.js';
import {requestContext} from './core.js';

import type{Stringifyable, OmitFirstParam} from '@alwatr/type';

Expand All @@ -15,7 +15,7 @@ export const requestableContextConsumer = {
* Example:
*
* ```ts
* requestableContextConsumer.requestContext<RequestParamType>('product-list', {foo: 'bar'});
* requestableContextConsumer.request<RequestParamType>('product-list', {foo: 'bar'});
* const newProductList = await requestableContextConsumer.untilChange<ProductListType>('product-list');
* ```
*/
Expand All @@ -39,7 +39,7 @@ export const requestableContextConsumer = {
* Example:
*
* ```ts
* productListConsumer.requestContext({foo: 'bar'});
* productListConsumer.request({foo: 'bar'});
* const newProductList = await productListConsumer.untilChange();
* ```
*/
Expand Down
2 changes: 1 addition & 1 deletion core/signal/src/requestable-context-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {contextProvider} from './context-provider.js';
import {setContextProvider} from './core2.js';
import {setContextProvider} from './core.js';

import type {Stringifyable, OmitFirstParam} from '@alwatr/type';

Expand Down
4 changes: 2 additions & 2 deletions core/signal/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {MaybePromise, Stringifyable} from '@alwatr/type';
export type DebounceType = 'No' | 'AnimationFrame' | 'Timeout';

/**
* addSignalListener options type
* Subscribe options type.
*/
export interface SubscribeOptions {
/**
Expand Down Expand Up @@ -124,7 +124,7 @@ export type SignalObject<T extends Stringifyable> = {
id: string;

/**
* Last dispatched value.
* Last dispatched detail.
*/
detail?: T;

Expand Down

0 comments on commit 75f688f

Please sign in to comment.