Skip to content

ci: merge staging to master #154

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# prettierrc for local editing
.prettierrc
8 changes: 4 additions & 4 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import type { POJO } from '@matrixai/errors';
import type { POJO } from './types.js';
import type { ConnectionError, CryptoError } from './native/types.js';
import { AbstractError } from '@matrixai/errors';

class ErrorQUIC<T> extends AbstractError<T> {
static description = 'QUIC error';
}

class ErrorQUICUndefinedBehaviour<T> extends AbstractError<T> {
class ErrorQUICUndefinedBehaviour<T> extends ErrorQUIC<T> {
static description = 'You should never see this error';
}

class ErrorQUICHostInvalid<T> extends AbstractError<T> {
class ErrorQUICHostInvalid<T> extends ErrorQUIC<T> {
static description = 'Host provided was not valid';
}

class ErrorQUICPortInvalid<T> extends AbstractError<T> {
class ErrorQUICPortInvalid<T> extends ErrorQUIC<T> {
static description = 'Port provided was not valid';
}

Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type QUICStream from './QUICStream.js';
import type { CryptoError } from './native/types.js';

type POJO = { [key: string]: any };

/**
* Opaque types are wrappers of existing types
* that require smart constructors
Expand Down Expand Up @@ -350,6 +352,7 @@ type StreamCodeToReason = (type: 'read' | 'write', code: number) => any;
type QUICStreamMap = Map<StreamId, QUICStream>;

export type {
POJO,
Opaque,
Class,
Callback,
Expand Down
Loading