mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: bump version (#3706)
This commit is contained in:
@@ -194,6 +194,7 @@ const timer = createTimers(abortController.signal);
|
||||
const sharedGlobalThis = Object.assign(Object.create(null), timer, {
|
||||
Object: globalThis.Object,
|
||||
fetch: pluginFetch,
|
||||
ReadableStream: globalThis.ReadableStream,
|
||||
Symbol: globalThis.Symbol,
|
||||
Error: globalThis.Error,
|
||||
TypeError: globalThis.TypeError,
|
||||
|
||||
@@ -62,7 +62,7 @@ describe('GraphQL wrapper for SWR', () => {
|
||||
const el = await renderer.findByText('number: 1');
|
||||
expect(el).toMatchInlineSnapshot(`
|
||||
<div>
|
||||
number:
|
||||
number:${' '}
|
||||
1
|
||||
</div>
|
||||
`);
|
||||
@@ -107,14 +107,7 @@ describe('GraphQL wrapper for SWR', () => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<button
|
||||
onClick={() =>
|
||||
// @ts-expect-error forgive the fake variables
|
||||
trigger()
|
||||
}
|
||||
>
|
||||
click
|
||||
</button>
|
||||
<button onClick={() => trigger()}>click</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -79,6 +79,7 @@ export function useMutation<Mutation extends GraphQLQuery>(
|
||||
): SWRMutationResponse<
|
||||
QueryResponse<Mutation>,
|
||||
GraphQLError | GraphQLError[],
|
||||
string,
|
||||
QueryVariables<Mutation>
|
||||
>;
|
||||
export function useMutation<Mutation extends GraphQLQuery>(
|
||||
@@ -87,6 +88,7 @@ export function useMutation<Mutation extends GraphQLQuery>(
|
||||
SWRMutationConfiguration<
|
||||
QueryResponse<Mutation>,
|
||||
GraphQLError | GraphQLError[],
|
||||
string,
|
||||
QueryVariables<Mutation>
|
||||
>,
|
||||
'fetcher'
|
||||
@@ -94,6 +96,7 @@ export function useMutation<Mutation extends GraphQLQuery>(
|
||||
): SWRMutationResponse<
|
||||
QueryResponse<Mutation>,
|
||||
GraphQLError | GraphQLError[],
|
||||
string,
|
||||
QueryVariables<Mutation>
|
||||
>;
|
||||
export function useMutation(
|
||||
|
||||
Reference in New Issue
Block a user