Skip to content

Commit

Permalink
鈾伙笍 refactor: Streamline imports in app-write-auth module
Browse files Browse the repository at this point in the history
refactor: streamline imports in app-write-auth module
```

Streamlines the imports within the `app-write-auth.ts` file by removing the bulk import from `../index` and replacing it with specific imports from more appropriate module paths, likely for better modularity and clarity.
  • Loading branch information
Gincioks committed May 5, 2024
1 parent e511fcc commit 1b6027c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/lib/app-write-auth.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import {
Account,
Avatars,
Client,
Databases,
ID,
Query,
} from '../index';

import { Client } from 'client';
import { type AppwriteConfigType } from './AppWriteProvider';
import { Account } from 'services/account';
import { Avatars } from 'services/avatars';
import { Databases } from 'services/databases';
import { Query } from 'query';
import { ID } from 'id';

function handleApiError(error: unknown): Error {
if (error instanceof Error) {
Expand Down

0 comments on commit 1b6027c

Please sign in to comment.