Skip to content

Commit

Permalink
update npm ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
gittyeric committed Oct 7, 2022
1 parent 51992e6 commit 63f5b55
Show file tree
Hide file tree
Showing 9 changed files with 1,978 additions and 29 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
@@ -0,0 +1,4 @@
lib
coverage
*.js
__tests__
26 changes: 26 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,26 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"semi": 0,
"no-constant-condition": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-non-null-assertion": 0,
}
}
7 changes: 6 additions & 1 deletion .npmignore
@@ -1,4 +1,9 @@
__tests__/
.vscode/
dist/
coverage/
coverage/
.eslintignore
.eslintrc.js
.gitignore
babel.config.js
jest.config.ts
4 changes: 2 additions & 2 deletions lib/src/index.d.ts
Expand Up @@ -5,7 +5,7 @@ export declare type Endpoint = {
bindClient: (socket: ServerSocket | ClientSocket) => void;
};
export declare type Contract<PARAMS extends unknown[], YIELD, RETURN> = {
newClient: (socket: ClientSocket<any, any>, timeoutMs?: number) => ClientFn<PARAMS, YIELD, RETURN>;
newClient: (socket: ClientSocket<object, object>, timeoutMs?: number) => ClientFn<PARAMS, YIELD, RETURN>;
newEndpoint: (responseGenerator: (...req: PARAMS) => AsyncGenerator<YIELD, RETURN, undefined> | Promise<RETURN>, logger?: (msg: string) => void) => Endpoint;
};
export declare function newContract<PARAMS extends unknown[], YIELD, RETURN>(uniqueName: string): {
Expand All @@ -18,7 +18,7 @@ export declare class NetworkError extends Error {
readonly cause: 'network disconnect';
constructor(msg: string, cause: 'network disconnect');
}
export declare function isNetworkError(e: unknown): e is NetworkError;
export declare function isNetworkError(e: object): e is NetworkError;
export declare function sleep(ms: number): Promise<void>;
export declare class BlockingQueue<T> {
private resolvers;
Expand Down
8 changes: 4 additions & 4 deletions lib/src/index.js

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

2 changes: 1 addition & 1 deletion lib/src/index.js.map

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

0 comments on commit 63f5b55

Please sign in to comment.