Skip to content

Commit

Permalink
Some type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Dec 13, 2024
1 parent 76cf3e0 commit 611bae3
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 63 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/lib/enonic/react4xp/DataFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import type {
RenderableTextComponent,
RenderableWarning,
XpRunMode,
} from '@enonic/react-components/nashorn';
} from '@enonic/react-components/dist/nashorn';


import {getIn} from '@enonic/js-utils/object/getIn';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Request } from '@enonic-types/lib-react4xp';
import type { Request } from '@enonic-types/core';


export default function isEditMode(request?: Request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
ImageData,
MacroData,
RichTextData
} from '@enonic/react-components/types/RichText';
} from '@enonic/react-components';
import {get as getContentByKey} from '/lib/xp/content';


Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lib/enonic/react4xp/htmlHandling.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Request } from '@enonic-types/core';
import type {
Id,
React4xp,
Request
} from '@enonic-types/lib-react4xp';
//import type {React4xp} from './React4xp';

Expand Down
21 changes: 0 additions & 21 deletions src/main/resources/types/Request.d.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/main/resources/types/Response.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export {
React4xp,
UrlType
} from './React4xp.d';
export {Request} from './Request.d'
export {Response} from './Response.d';
export {Stats} from './Stats.d';

export type OneOrMore<T> = T | T[];

0 comments on commit 611bae3

Please sign in to comment.