Skip to content

Commit

Permalink
Phew, fixed PloneClient missing typing
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 17, 2024
1 parent 357b1a6 commit e90ff78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ploneClient from './client';
import PloneClient from './client';

export default ploneClient;
export default PloneClient;
10 changes: 5 additions & 5 deletions packages/providers/src/PloneClient.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from 'react';

import type PloneClient from '@plone/client';
import PloneClient from '@plone/client';

export const PloneClientContext = React.createContext<PloneClient | undefined>(
undefined,
);
export const PloneClientContext = React.createContext<
InstanceType<typeof PloneClient> | undefined
>(undefined);

export const usePloneClient = () => {
const client = React.useContext(PloneClientContext);
Expand All @@ -17,7 +17,7 @@ export const usePloneClient = () => {
};

export type PloneClientProviderProps = {
client: PloneClient;
client: InstanceType<typeof PloneClient>;
children?: React.ReactNode;
};

Expand Down

0 comments on commit e90ff78

Please sign in to comment.