Skip to content

Commit 741cd85

Browse files
committed
lint fixes
1 parent 9a7bc0b commit 741cd85

File tree

9 files changed

+22
-17
lines changed

9 files changed

+22
-17
lines changed

apps/events/src/routes/playground.lazy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { HypergraphSpaceProvider } from '@graphprotocol/hypergraph-react';
2+
import { createLazyFileRoute } from '@tanstack/react-router';
13
import { CreateEvents } from '@/components/create-events';
24
import { CreatePropertiesAndTypesEvent } from '@/components/create-properties-and-types-event';
35
import { Event } from '@/components/event';
46
import { Playground } from '@/components/playground';
5-
import { HypergraphSpaceProvider } from '@graphprotocol/hypergraph-react';
6-
import { createLazyFileRoute } from '@tanstack/react-router';
77

88
export const Route = createLazyFileRoute('/playground')({
99
component: RouteComponent,

apps/privy-login-example/src/routes/playground.lazy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { HypergraphSpaceProvider } from '@graphprotocol/hypergraph-react';
2+
import { createLazyFileRoute } from '@tanstack/react-router';
13
import { CreateEvents } from '@/components/create-events';
24
import { CreatePropertiesAndTypesEvent } from '@/components/create-properties-and-types-event';
35
import { Event } from '@/components/event';
46
import { Playground } from '@/components/playground';
5-
import { HypergraphSpaceProvider } from '@graphprotocol/hypergraph-react';
6-
import { createLazyFileRoute } from '@tanstack/react-router';
77

88
export const Route = createLazyFileRoute('/playground')({
99
component: RouteComponent,

packages/hypergraph-react/src/HypergraphAppContext.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use client';
22

3-
import type { DocHandle } from '@automerge/automerge-repo';
4-
import { RepoContext } from '@automerge/automerge-repo-react-hooks';
5-
import { Repo } from '@automerge/automerge-repo/slim';
63
import { automergeWasmBase64 } from '@automerge/automerge/automerge.wasm.base64';
74
import * as automerge from '@automerge/automerge/slim';
5+
import type { DocHandle } from '@automerge/automerge-repo';
6+
import { Repo } from '@automerge/automerge-repo/slim';
7+
import { RepoContext } from '@automerge/automerge-repo-react-hooks';
88
import { Graph } from '@graphprotocol/grc-20';
99
import {
1010
Connect,

packages/hypergraph-react/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
export { PublishDiff } from './components/publish-diff/publish-diff.js';
22
export { createWalletClient } from './create-wallet-client.js';
3+
export {
4+
HypergraphAppProvider,
5+
useHypergraphApp,
6+
useHypergraphAuth,
7+
} from './HypergraphAppContext.js';
8+
export { HypergraphSpaceProvider } from './HypergraphSpaceContext.js';
39
export { useCreateEntity } from './hooks/use-create-entity.js';
410
export { useDeleteEntity } from './hooks/use-delete-entity.js';
511
export { useEntity } from './hooks/use-entity.js';
@@ -17,12 +23,6 @@ export { useOwnAccountInbox } from './hooks/useOwnAccountInbox.js';
1723
export { useOwnSpaceInbox } from './hooks/useOwnSpaceInbox.js';
1824
export { usePublicAccountInboxes } from './hooks/usePublicAccountInboxes.js';
1925
export { usePublishToPublicSpace } from './hooks/usePublishToSpace.js';
20-
export {
21-
HypergraphAppProvider,
22-
useHypergraphApp,
23-
useHypergraphAuth,
24-
} from './HypergraphAppContext.js';
25-
export { HypergraphSpaceProvider } from './HypergraphSpaceContext.js';
2626
export { generateDeleteOps as _generateDeleteOps } from './internal/generate-delete-ops.js';
2727
export { useDeleteEntityPublic as _useDeleteEntityPublic } from './internal/use-delete-entity-public.js';
2828
export { useEntityPublic as _useEntityPublic } from './internal/use-entity-public.js';

packages/hypergraph-react/src/internal/convert-relations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type RawEntityValue = string | boolean | number | unknown[] | Date | { id: strin
3030
type RawEntity = Record<string, RawEntityValue>;
3131
type NestedRawEntity = RawEntity & { _relation: { id: string } };
3232

33-
export const convertRelations = <S extends Schema.Schema.AnyNoContext>(
33+
export const convertRelations = <_S extends Schema.Schema.AnyNoContext>(
3434
queryEntity: RecursiveQueryEntity,
3535
ast: SchemaAST.TypeLiteral,
3636
) => {

packages/hypergraph/src/entity/entity.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { PropertyIdSymbol, TypeIdsSymbol } from '../constants.js';
2222
export function EntitySchema<
2323
T extends Record<
2424
string,
25+
// biome-ignore lint/suspicious/noExplicitAny: any
2526
(propertyId: string) => Schema.Schema<any> | Schema.PropertySignature<any, any, any, any, any, any, any>
2627
>,
2728
P extends Record<keyof T, string>,
@@ -34,6 +35,7 @@ export function EntitySchema<
3435
): Schema.Struct<{
3536
[K in keyof T]: ReturnType<T[K]> & { id: string };
3637
}> {
38+
// biome-ignore lint/suspicious/noExplicitAny: any
3739
const properties: Record<string, Schema.Schema<any> | Schema.PropertySignature<any, any, any, any, any, any, any>> =
3840
{};
3941

@@ -42,6 +44,7 @@ export function EntitySchema<
4244
properties[key] = schemaType(propertyId);
4345
}
4446

47+
// biome-ignore lint/suspicious/noExplicitAny: any
4548
return Schema.Struct(properties).pipe(Schema.annotations({ [TypeIdsSymbol]: mapping.types })) as any;
4649
}
4750

@@ -55,6 +58,7 @@ export function encodeToGrc20Json<T extends object, E>(schema: Schema.Schema<T,
5558
? (prop.type.types.find((member) => !SchemaAST.isUndefinedKeyword(member)) ?? prop.type)
5659
: prop.type;
5760
const result = SchemaAST.getAnnotation<string>(PropertyIdSymbol)(propType);
61+
// biome-ignore lint/suspicious/noExplicitAny: any
5862
const propertyValue: any = (value as any)[prop.name];
5963
if (Option.isSome(result) && propertyValue !== undefined) {
6064
out[result.value] = propertyValue;
@@ -83,6 +87,7 @@ export function decodeFromGrc20Json<T extends object, E>(
8387
if (Option.isSome(result)) {
8488
const grc20Key = result.value;
8589
if (grc20Key in grc20Data && typeof prop.name === 'string') {
90+
// biome-ignore lint/suspicious/noExplicitAny: any
8691
out[prop.name] = (grc20Data as any)[grc20Key];
8792
}
8893
}

packages/hypergraph/src/entity/findMany.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as SchemaAST from 'effect/SchemaAST';
55
import { TypeIdsSymbol } from '../constants.js';
66
import { deepMerge } from '../utils/internal/deep-merge.js';
77
import { canonicalize } from '../utils/jsc.js';
8-
import { decodedEntitiesCache, type DecodedEntitiesCacheEntry, type QueryEntry } from './decodedEntitiesCache.js';
8+
import { type DecodedEntitiesCacheEntry, decodedEntitiesCache, type QueryEntry } from './decodedEntitiesCache.js';
99
import { decodeFromGrc20Json } from './entity.js';
1010
import { entityRelationParentsMap } from './entityRelationParentsMap.js';
1111
import { getEntityRelations } from './getEntityRelations.js';

packages/hypergraph/src/entity/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DocHandle } from '@automerge/automerge-repo';
22
import * as Schema from 'effect/Schema';
3-
import { decodeFromGrc20Json, encodeToGrc20Json, EntityNotFoundError } from './entity.js';
3+
import { decodeFromGrc20Json, EntityNotFoundError, encodeToGrc20Json } from './entity.js';
44
import type { DocumentContent, Entity } from './types.js';
55

66
/**

packages/hypergraph/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export * as Messages from './messages/index.js';
1212
export * as PrivyAuth from './privy-auth/privy-auth.js';
1313
export * as SpaceEvents from './space-events/index.js';
1414
export * as SpaceInfo from './space-info/index.js';
15-
export * as StoreConnect from './store-connect.js';
1615
export * from './store.js';
16+
export * as StoreConnect from './store-connect.js';
1717
export * as Type from './type/type.js';
1818
export * from './types.js';
1919
export * as Utils from './utils/index.js';

0 commit comments

Comments
 (0)