Skip to content

Commit

Permalink
Bumped v15.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina authored and adrtivv committed Sep 30, 2024
1 parent fe4c63d commit 6f18c6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,20 @@ import { Readable } from 'stream'
type Mercurius = typeof mercurius

declare namespace mercurius {
export interface PubSub {
subscribe<TResult = any>(topics: string | string[]): Promise<Readable & AsyncIterableIterator<TResult>>;
publish<TResult = any>(event: { topic: string; payload: TResult }, callback?: () => void): void;
export type PubSubPublishArgsByKey = {
[key: string]: any;
};

Check failure on line 28 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Extra semicolon

Check failure on line 28 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Extra semicolon

Check failure on line 28 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Extra semicolon

Check failure on line 28 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Extra semicolon

Check failure on line 28 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Extra semicolon

Check failure on line 28 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Extra semicolon

export interface PubSub<

Check warning on line 30 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Unexpected trailing comma

Check warning on line 30 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Unexpected trailing comma

Check warning on line 30 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Unexpected trailing comma

Check warning on line 30 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Unexpected trailing comma

Check warning on line 30 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Unexpected trailing comma

Check warning on line 30 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Unexpected trailing comma
TPubSubPublishArgsByKey extends PubSubPublishArgsByKey,
> {
subscribe<TKey extends Extract<keyof TPubSubPublishArgsByKey, string>>(

Check failure on line 33 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 33 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 33 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 33 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 33 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 33 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 4 spaces but found 6
topics: TKey | TKey[],

Check failure on line 34 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 34 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 34 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 34 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 34 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 34 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 6 spaces but found 8
): Promise<Readable & AsyncIterableIterator<TPubSubPublishArgsByKey[TKey]>>;

Check failure on line 35 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 35 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 35 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 35 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 35 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 35 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 4 spaces but found 6
publish<TKey extends Extract<keyof TPubSubPublishArgsByKey, string>>(

Check failure on line 36 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 36 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 36 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 36 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 36 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 36 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 4 spaces but found 6
event: { topic: TKey; payload: TPubSubPublishArgsByKey[TKey] },

Check failure on line 37 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 37 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 37 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 37 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 37 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 37 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 6 spaces but found 8
callback?: () => void,

Check failure on line 38 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 38 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 38 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 38 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 38 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 6 spaces but found 8

Check failure on line 38 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 6 spaces but found 8
): void;

Check failure on line 39 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 39 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, macOS-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 39 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 39 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 39 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (22.x, windows-latest)

Expected indentation of 4 spaces but found 6

Check failure on line 39 in index.d.ts

View workflow job for this annotation

GitHub Actions / test (20.x, windows-latest)

Expected indentation of 4 spaces but found 6
}

export interface MercuriusContext {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mercurius",
"version": "14.1.0",
"version": "15.0.0",
"description": "Fastify GraphQL adapter with subscription support",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 6f18c6c

Please sign in to comment.