Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Dec 23, 2024
1 parent b4c6723 commit ebf1ffb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions design-system/packages/modals/src/DrawerController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export const DrawerController = ({ isOpen, children }: DrawerControllerProps) =>
return (
<Transition appear mountOnEnter unmountOnExit in={isOpen} timeout={150} nodeRef={nodeRef}>
{transitionState => (
<DrawerControllerContextProvider value={transitionState} ref={nodeRef}>
{children}
</DrawerControllerContextProvider>
<div ref={nodeRef}>
<DrawerControllerContextProvider value={transitionState}>
{children}
</DrawerControllerContextProvider>
</div>
)}
</Transition>
)
Expand Down
2 changes: 1 addition & 1 deletion examples/assets-local/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default config({
},
lists,
server: {
maxFileSize: bytes('40Mb')
maxFileSize: bytes('40Mb')!,
},
storage: {
my_images: {
Expand Down
2 changes: 1 addition & 1 deletion examples/assets-s3/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default config({
},
lists,
server: {
maxFileSize: bytes('8Mb')
maxFileSize: bytes('8Mb')!,
},
storage: {
my_images: {
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-session-invalidation/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function withSessionInvalidation (config: Config<Session>) {

export default withSessionInvalidation(
withAuth(
config<TypeInfo>({
config({
db: {
provider: 'sqlite',
url: process.env.DATABASE_URL || 'file:./keystone-example.db',
Expand All @@ -80,4 +80,4 @@ export default withSessionInvalidation(
session: statelessSessions<Session>(),
})
)
)
) as any as TypeInfo;
1 change: 1 addition & 0 deletions examples/extend-graphql-schema-nexus/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export function extendGraphqlSchema (baseSchema: GraphQLSchema) {

// Typescript output settings, probably something you might commit in dev
// TODO: remove false ??, it is not part of the example, but we are having monorepo issues
// @ts-expect-error
// eslint-disable-next-line no-constant-binary-expression
shouldGenerateArtifacts: false ?? process.env.NODE_ENV !== 'production',
outputs: {
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function build (
undefined,
undefined,
undefined,
'default'
'default',
undefined,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function ComponentBlockRender ({

const childrenByPath: Record<string, ReactElement> = {}
let maybeChild: ReactElement | undefined
children.forEach((child: ReactElement) => {
children.forEach((child: ReactElement<any>) => {
const propPath = child.props.children.props.element.propPath
if (propPath === undefined) {
maybeChild = child
Expand Down

0 comments on commit ebf1ffb

Please sign in to comment.