Skip to content

Commit

Permalink
feat: export interface for useRoadizBlock props
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelodelain committed Mar 26, 2024
1 parent 858ddcd commit 44506ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 9 additions & 3 deletions composables/use-roadiz-block.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import type { RoadizNodesSources } from '@roadiz/types'
import type { RoadizBlockProps } from '~/types/roadiz'
import type { RoadizNodesSources, RoadizWalker } from '@roadiz/types'

export interface UseRoadizBlockProps {
walker: RoadizWalker
index: number
blocks?: RoadizWalker[]
numBlocks?: number | string
}

export interface UseRoadizBlockOptions {
props: RoadizBlockProps
props: UseRoadizBlockProps
}

export function useRoadizBlock<T extends RoadizNodesSources>({ props }: UseRoadizBlockOptions) {
Expand Down
8 changes: 0 additions & 8 deletions types/roadiz.d.ts

This file was deleted.

0 comments on commit 44506ad

Please sign in to comment.