Skip to content

Commit

Permalink
#5172 - fixed failing types
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-sloboda committed Jul 29, 2024
1 parent 5fe455d commit e7356cf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
***************************************************************************/

import { IMAGE_SERIALIZE_KEY } from 'domain/constants';
import type { KetFileImageNode } from 'domain/entities';
import { KetFileNode } from 'domain/serializers';
import { KetFileImageNode } from 'domain/entities';

export function imageToKet(imageNode: KetFileImageNode) {
export function imageToKet(imageNode: KetFileNode) {
return {
type: IMAGE_SERIALIZE_KEY,
boundingBox: imageNode.boundingBox,
boundingBox: (imageNode as KetFileImageNode).boundingBox,
data: imageNode.data,
selected: imageNode.selected,
};
Expand Down

0 comments on commit e7356cf

Please sign in to comment.