Skip to content

Commit

Permalink
chore: make lint happy before release
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Mar 5, 2022
1 parent f249c41 commit 9b97843
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"khafan",
"mastmalize",
"Mihandoost",
"noncallable",
"tsbuildinfo",
"Vatr"
],
"typescript.tsdk": "node_modules\\typescript\\lib",
Expand Down
1 change: 0 additions & 1 deletion demo/index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions package/signal/src/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ export function setSignalProvider<SignalName extends keyof VatrRequestSignals>(
log('setSignalProvider(%s)', signalName);
// @TODO: refactor with removeSignalProvider
const signal = _getSignalObject(`request-${signalName}` as unknown as SignalName);
if (signal.listenerList.length>0) {
if (signal.listenerList.length > 0) {
log('setSignalProvider(%s): WARNING! another provider defined and will removed!',
signalName, signal.listenerList.length);
signal.listenerList = [];
}

const _callback = async (requestParam: VatrRequestSignals[SignalName]) => {
const _callback = async (requestParam: VatrRequestSignals[SignalName]): Promise<void> => {
const signalValue = await signalProvider(requestParam);
if (signalValue !== undefined) { // null can be a valid value.
dispatchSignal(signalName, signalValue, {debounce: options?.debounce ?? true});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
Expand Down

0 comments on commit 9b97843

Please sign in to comment.