UNPKG

@wdslib/web-design

Version:

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

9 lines (8 loc) 232 B
interface ItemType { id: string; pid?: string; children?: ItemType[]; } declare function findById(arr: ItemType[], id: string, prop?: keyof ItemType): ItemType | undefined; export type { ItemType }; export { findById };