Skip to content
Merged
122 changes: 61 additions & 61 deletions ts/.yalc/@aztec/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
const contexts = [
'TSMethodDefinition',
'MethodDefinition',
'TSParameterProperty[accessibility=public]',
'TSPropertyDefinition[accessibility=public]',
'PropertyDefinition[accessibility=public]',
'TSPropertySignature',
'PropertySignature',
'TSInterfaceDeclaration',
'InterfaceDeclaration',
'TSTypeAliasDeclaration',
'TypeAliasDeclaration',
'TSTypeDeclaration',
'TypeDeclaration',
'TSEnumDeclaration',
'EnumDeclaration',
'TSClassDeclaration',
'ClassDeclaration',
'TSClassExpression',
'ClassExpression',
'TSFunctionExpression',
'FunctionExpression',
'TSInterfaceExpression',
'InterfaceExpression',
'TSEnumExpression',
'EnumExpression',
"TSMethodDefinition",
"MethodDefinition",
"TSParameterProperty[accessibility=public]",
"TSPropertyDefinition[accessibility=public]",
"PropertyDefinition[accessibility=public]",
"TSPropertySignature",
"PropertySignature",
"TSInterfaceDeclaration",
"InterfaceDeclaration",
"TSTypeAliasDeclaration",
"TypeAliasDeclaration",
"TSTypeDeclaration",
"TypeDeclaration",
"TSEnumDeclaration",
"EnumDeclaration",
"TSClassDeclaration",
"ClassDeclaration",
"TSClassExpression",
"ClassExpression",
"TSFunctionExpression",
"FunctionExpression",
"TSInterfaceExpression",
"InterfaceExpression",
"TSEnumExpression",
"EnumExpression",
];

module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'jsdoc'],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc", "jsdoc"],
overrides: [
{
files: ['*.ts', '*.tsx'],
files: ["*.ts", "*.tsx"],
parserOptions: {
project: ['./tsconfig.json'],
project: ["./tsconfig.json"],
},
},
],
env: {
node: true,
},
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-floating-promises': 2,
'require-await': 2,
'no-constant-condition': 'off',
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-floating-promises": 2,
"require-await": 2,
"no-constant-condition": "off",
camelcase: 2,
'no-restricted-imports': [
'warn',
"no-restricted-imports": [
"warn",
{
patterns: [
{
group: ['client-dest'],
group: ["client-dest"],
message:
'Fix this absolute garbage import. It's your duty to solve it before it spreads.',
"Fix this absolute garbage import. It's your duty to solve it before it spreads.",
},
{
group: ['dest'],
group: ["dest"],
message:
'You should not be importing from a build directory. Did you accidentally do a relative import?',
"You should not be importing from a build directory. Did you accidentally do a relative import?",
},
],
},
],
'tsdoc/syntax': 'warn',
'jsdoc/require-jsdoc': [
'warn',
"tsdoc/syntax": "warn",
"jsdoc/require-jsdoc": [
"warn",
{
contexts,
checkConstructors: false,
checkGetters: true,
checkSetters: true,
},
],
'jsdoc/require-description': ['warn', { contexts }],
'jsdoc/require-description-complete-sentence': ['warn'],
'jsdoc/require-hyphen-before-param-description': ['warn'],
'jsdoc/require-param': ['warn', { contexts, checkDestructured: false }],
'jsdoc/require-param-description': ['warn', { contexts }],
'jsdoc/require-param-name': ['warn', { contexts }],
'jsdoc/require-property': ['warn', { contexts }],
'jsdoc/require-property-description': ['warn', { contexts }],
'jsdoc/require-property-name': ['warn', { contexts }],
'jsdoc/require-returns': ['warn', { contexts }],
'jsdoc/require-returns-description': ['warn', { contexts }],
"jsdoc/require-description": ["warn", { contexts }],
"jsdoc/require-description-complete-sentence": ["warn"],
"jsdoc/require-hyphen-before-param-description": ["warn"],
"jsdoc/require-param": ["warn", { contexts, checkDestructured: false }],
"jsdoc/require-param-description": ["warn", { contexts }],
"jsdoc/require-param-name": ["warn", { contexts }],
"jsdoc/require-property": ["warn", { contexts }],
"jsdoc/require-property-description": ["warn", { contexts }],
"jsdoc/require-property-name": ["warn", { contexts }],
"jsdoc/require-returns": ["warn", { contexts }],
"jsdoc/require-returns-description": ["warn", { contexts }],
},
ignorePatterns: ['node_modules', 'dest*', 'dist', '*.js', '.eslintrc.cjs'],
ignorePatterns: ["node_modules", "dest*", "dist", "*.js", ".eslintrc.cjs"],
};
11 changes: 11 additions & 0 deletions ts/.yalc/@aztec/log/dest/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Type for a logger.
*/
export type DebugLogger = (...args: any[]) => void;
/**
* Creates a logger.
* TODO port aztec2 logger over.
* @param moduleName - Name of module for logging or filtering purposes.
*/
export declare function createDebugLogger(moduleName: string): DebugLogger;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions ts/.yalc/@aztec/log/dest/index.d.ts.map

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

9 changes: 9 additions & 0 deletions ts/.yalc/@aztec/log/dest/index.js

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

8 changes: 8 additions & 0 deletions ts/.yalc/@aztec/wasm/dest/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { WebDataStore } from './worker/browser/index.js';
export { NodeDataStore } from './worker/node/index.js';
export { WasmWorker, WorkerPool } from './worker/index.js';
export { WasmModule } from './wasm/index.js';
export { AsyncCallState, AsyncFnState } from './wasm/index.js';
export { DispatchMsg, WorkerListener, TransportServer, NodeListener } from './transport/index.js';
export { Transfer, isTransferDescriptor } from './transport/interface/transferable.js';
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions ts/.yalc/@aztec/wasm/dest/index.d.ts.map

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

8 changes: 8 additions & 0 deletions ts/.yalc/@aztec/wasm/dest/index.js

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

46 changes: 46 additions & 0 deletions ts/.yalc/@aztec/wasm/dest/memory_fifo.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* A simple fifo queue. It can grow unbounded. It can have multiple producers and consumers.
* Putting an item onto the queue always succeeds, unless either end() or cancel() has been called in which case
* the item being pushed is simply discarded.
*/
export declare class MemoryFifo<T> {
private waiting;
private items;
private flushing;
/**
* Length of queue.
* @returns integer.
*/
length(): number;
/**
* Returns next item within the queue, or blocks until and item has been put into the queue.
* If given a timeout, the promise will reject if no item is received after `timeout` seconds.
* If the queue is flushing, `null` is returned.
* @param timeout - In seconds.
* @returns Promise of result.
*/
get(timeout?: number): Promise<T | null>;
/**
* Put an item onto back of the queue.
* @param item - The item to enqueue.
*/
put(item: T): void;
/**
* Once ended, no further items are added to queue. Consumers will consume remaining items within the queue.
* The queue is not reusable after calling `end()`.
* Any consumers waiting for an item receive null.
*/
end(): void;
/**
* Once cancelled, all items are discarded from the queue, and no further items are added to the queue.
* The queue is not reusable after calling `cancel()`.
* Any consumers waiting for an item receive null.
*/
cancel(): void;
/**
* Helper method that can be used to continously consume and process items on the queue.
* @param handler - The item handler function.
*/
process(handler: (item: T) => Promise<void>): Promise<void>;
}
//# sourceMappingURL=memory_fifo.d.ts.map
1 change: 1 addition & 0 deletions ts/.yalc/@aztec/wasm/dest/memory_fifo.d.ts.map

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

101 changes: 101 additions & 0 deletions ts/.yalc/@aztec/wasm/dest/memory_fifo.js

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

5 changes: 5 additions & 0 deletions ts/.yalc/@aztec/wasm/dest/transport/browser/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from './worker_connector.js';
export * from './worker_listener.js';
export * from './shared_worker_connector.js';
export * from './shared_worker_listener.js';
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions ts/.yalc/@aztec/wasm/dest/transport/browser/index.d.ts.map

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

5 changes: 5 additions & 0 deletions ts/.yalc/@aztec/wasm/dest/transport/browser/index.js

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

Loading